/* Hubtisch-Katalog — Filter-Card + Tabelle */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,600;0,700;0,800;1,700;1,800&display=swap");

body[data-page="hubtische"] {
  --hubtisch-gap: calc(1.25rem * var(--space-scale, 1));
}

body[data-page="hubtische"] .app-main {
  display: flex;
  flex-direction: column;
  max-height: 100dvh;
  overflow: hidden;
  min-height: 0;
  padding: var(--hubtisch-gap);
  gap: var(--hubtisch-gap);
}

body[data-page="hubtische"] .hubtisch-filter-panel svg {
  display: block;
  flex-shrink: 0;
  max-width: 22px;
  max-height: 22px;
}

/* Assistent — gleiche Typo-Skala wie Filter-Card („Katalog filtern“) */
body[data-page="hubtische"] .assistant-header strong {
  font-size: var(--ui-font-panel-title, 15px);
  font-weight: 600;
  line-height: 1.3;
}

body[data-page="hubtische"] #assistant-status {
  font-size: var(--ui-font-caption, 12px);
  line-height: 1.35;
}

body[data-page="hubtische"] .assistant-header__icon--tip {
  flex-shrink: 0;
  padding: 0.2rem;
  border-radius: 8px;
  background: #fefce8;
  color: #ca8a04;
  box-sizing: content-box;
}

body[data-page="hubtische"] .msg-bubble {
  font-size: var(--ui-font-body, 14px);
  line-height: 1.45;
}

body[data-page="hubtische"] .msg-question {
  font-size: var(--ui-font-panel-title, 15px);
  font-weight: 600;
  line-height: 1.3;
}

body[data-page="hubtische"] .msg-hint {
  font-size: var(--ui-font-caption, 12px);
}

body[data-page="hubtische"] .msg-bubble--awaiting {
  background: #fefce8;
  border-color: #fde68a;
}

html[data-theme="dark"] body[data-page="hubtische"] .msg-bubble--awaiting {
  background: #422006;
  border-color: #ca8a04;
  color: #fef9c3;
}

body[data-page="hubtische"] .assistant-kg-badge {
  font-size: var(--ui-font-body, 14px);
}

.hubtisch-lead__line {
  display: block;
}

.hubtisch-lead__line + .hubtisch-lead__line {
  margin-top: 0.3rem;
}

.hubtisch-catalog {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.hubtisch-card {
  position: relative;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.hubtisch-card__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--accent, #009493) 0%, #00b8a9 55%, #5eead4 100%);
}

.hubtisch-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem 0.85rem;
}

.hubtisch-card__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.hubtisch-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md, 12px);
  background: color-mix(in srgb, var(--accent, #009493) 12%, transparent);
  color: var(--accent, #009493);
}

.hubtisch-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.hubtisch-card__title {
  margin: 0;
  font-size: var(--ui-font-panel-title, 15px);
  font-weight: 600;
  line-height: 1.3;
}

.hubtisch-card__subtitle {
  margin: 0.15rem 0 0;
  font-size: var(--ui-font-caption, 12px);
  color: var(--muted, #64748b);
}

.hubtisch-card__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  padding: 0.4rem 0.75rem;
}

.hubtisch-card__reset:hover {
  border-color: var(--accent, #009493);
  color: var(--accent, #009493);
}

.hubtisch-btn-icon {
  display: flex;
  width: 1rem;
  height: 1rem;
}

.hubtisch-btn-icon svg {
  width: 1rem;
  height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
}

.hubtisch-filter-form {
  padding: 0 1.25rem 0.65rem;
}

.hubtisch-meta-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  min-height: 0;
}

.hubtisch-meta-filters[hidden] {
  display: none !important;
}

.hubtisch-meta-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.2rem 0.45rem 0.2rem 0.5rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #009493) 8%, var(--surface, #fff));
  color: var(--text, #0f172a);
  font: inherit;
  font-size: var(--ui-font-caption, 12px);
  line-height: 1.25;
  cursor: pointer;
}

.hubtisch-meta-filter:hover,
.hubtisch-meta-filter:focus-visible {
  border-color: var(--accent, #009493);
  outline: none;
}

.hubtisch-meta-filter-eco {
  gap: 0.2rem;
  padding-right: 0.32rem;
}

.hubtisch-meta-filter-eco__x {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.7;
}

.hubtisch-meta-filter-eco:hover .hubtisch-meta-filter-eco__x,
.hubtisch-meta-filter-eco:focus-visible .hubtisch-meta-filter-eco__x {
  opacity: 1;
}

.hubtisch-meta-filter__x {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.65;
}

.hubtisch-card--filters-active .hubtisch-card__accent {
  background: linear-gradient(90deg, var(--accent, #009493) 0%, #00c4b3 100%);
}

.hubtisch-field input.is-filter-set {
  border-color: var(--accent, #009493);
  background: var(--surface, #fff);
}

.hubtisch-field__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.2rem;
  min-width: 0;
}

.hubtisch-field__head .hubtisch-field__label {
  flex: 1;
  min-width: 0;
}

.hubtisch-field-dismiss {
  flex-shrink: 0;
  align-self: flex-start;
  margin: -0.05rem -0.1rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted, #64748b);
  cursor: pointer;
}

.hubtisch-field-dismiss:hover,
.hubtisch-field-dismiss:focus-visible {
  color: #dc2626;
  outline: none;
}

.hubtisch-table--filter-typ td:nth-child(1),
.hubtisch-table--filter-typ th:nth-child(1),
.hubtisch-table--filter-nutzlast td:nth-child(3),
.hubtisch-table--filter-nutzlast th:nth-child(3),
.hubtisch-table--filter-plattform_laenge td:nth-child(4),
.hubtisch-table--filter-plattform_laenge th:nth-child(4),
.hubtisch-table--filter-plattform_breite td:nth-child(5),
.hubtisch-table--filter-plattform_breite th:nth-child(5),
.hubtisch-table--filter-bauhoehe td.col-bauhoehe,
.hubtisch-table--filter-bauhoehe th.col-bauhoehe,
.hubtisch-table--filter-nutzhub td.col-hub,
.hubtisch-table--filter-nutzhub th.col-hub {
  background-color: rgba(0, 148, 147, 0.07);
}

#hubtisch-table .th-sort__field-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.25rem;
  vertical-align: middle;
  opacity: 0.85;
}

#hubtisch-table .th-sort__field-icon svg {
  display: block;
}

#hubtisch-table td.col-nutzlast {
  text-align: right;
}

#hubtisch-table .hubtisch-nutzlast-badge {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.16rem 0.28rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius-sm, 6px);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface, #fff));
  color: #007a79;
  font-family: inherit;
  font-size: var(--ui-font-caption, 12px);
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  vertical-align: middle;
}

#hubtisch-table .hubtisch-nutzlast-badge:hover {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface, #fff));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

#hubtisch-table .hubtisch-nutzlast-badge:focus-visible {
  outline: 2px solid var(--accent, #009493);
  outline-offset: 2px;
}

.hubtisch-table--filter-typ th:nth-child(1),
.hubtisch-table--filter-nutzlast th:nth-child(3),
.hubtisch-table--filter-plattform_laenge th:nth-child(4),
.hubtisch-table--filter-plattform_breite th:nth-child(5),
.hubtisch-table--filter-bauhoehe th.col-bauhoehe,
.hubtisch-table--filter-nutzhub th.col-hub {
  color: var(--accent, #009493);
  box-shadow: inset 0 -2px 0 var(--accent, #009493);
}

#hubtisch-table .hubtisch-result-metric {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  width: auto;
  max-width: none;
}

#hubtisch-table th:nth-child(6),
#hubtisch-table td.col-hub {
  width: 1%;
  white-space: nowrap;
  padding-right: 0.2rem;
}

#hubtisch-table th:nth-child(7),
#hubtisch-table td.col-bauhoehe {
  width: 1%;
  white-space: nowrap;
  padding-left: 0.25rem;
  padding-right: 0.85rem;
}

#hubtisch-table td.col-hub .hubtisch-cell-filter,
#hubtisch-table td.col-bauhoehe .hubtisch-cell-filter {
  width: auto;
}

#hubtisch-table .hubtisch-result-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
}

#hubtisch-table .hubtisch-result-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

#hubtisch-table .hubtisch-result-icon--hub {
  color: var(--accent, #009493);
}

#hubtisch-table .hubtisch-result-icon--bauhoehe {
  color: var(--muted, #6b7280);
}

#hubtisch-table .hubtisch-result-icon--bauhoehe svg {
  transform: scaleY(-1);
  transform-origin: center;
}

#hubtisch-table th.col-hub,
#hubtisch-table td.col-hub,
#hubtisch-table td.col-hub .hubtisch-cell-filter {
  font-weight: 700;
}

#hubtisch-table th.col-plattform-dim,
#hubtisch-table td.col-plattform-dim {
  background: #f1f5f9;
}

html[data-theme="dark"] #hubtisch-table th.col-plattform-dim,
html[data-theme="dark"] #hubtisch-table td.col-plattform-dim {
  background: color-mix(in srgb, var(--text) 6%, var(--surface, #0f172a));
}

.hubtisch-row-link:hover td.col-plattform-dim {
  background: color-mix(in srgb, var(--accent, #009493) 11%, #f1f5f9);
}

html[data-theme="dark"] .hubtisch-row-link:hover td.col-plattform-dim {
  background: color-mix(in srgb, var(--accent, #009493) 14%, var(--surface, #0f172a));
}

#hubtisch-table td.col-plattform-dim,
#hubtisch-table .hubtisch-plattform-dim-val {
  font-weight: 700;
}

#hubtisch-table .hubtisch-plattform-dim-val {
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius-sm, 6px);
}

#hubtisch-table .hubtisch-plattform-dim-val:hover {
  color: var(--accent, #009493);
}

#hubtisch-table .hubtisch-plattform-dim-val:focus-visible {
  outline: 2px solid var(--accent, #009493);
  outline-offset: 2px;
}

.hubtisch-field-grid--filters,
.hubtisch-field-grid--bounds {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem 0.55rem;
}

.hubtisch-field-grid--bounds .hubtisch-field--minmax:not(:first-child) {
  border-left: 1px solid var(--border, #e2e8f0);
  padding-left: 0.55rem;
}

.hubtisch-field--minmax {
  gap: 0.28rem;
}

.hubtisch-minmax {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  gap: 0.35rem;
  min-width: 0;
}

.hubtisch-field--minmax .hubtisch-minmax {
  width: 100%;
}

.hubtisch-field--minmax input {
  padding: 0.42rem 0.45rem;
  min-height: 2.25rem;
}

@media (max-width: 1200px) {
  .hubtisch-field-grid--filters,
  .hubtisch-field-grid--bounds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hubtisch-field-grid--bounds .hubtisch-field--minmax {
    border-left: none;
    padding-left: 0;
  }

  .hubtisch-field-grid--bounds .hubtisch-field--minmax:not(:nth-child(3n + 1)) {
    border-left: 1px solid var(--border, #e2e8f0);
    padding-left: 0.55rem;
  }
}

@media (max-width: 720px) {
  .hubtisch-field-grid--filters,
  .hubtisch-field-grid--bounds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hubtisch-field-grid--bounds .hubtisch-field--minmax {
    border-left: none;
    padding-left: 0;
  }

  .hubtisch-field-grid--bounds .hubtisch-field--minmax:not(:nth-child(2n + 1)) {
    border-left: 1px solid var(--border, #e2e8f0);
    padding-left: 0.55rem;
  }
}

@media (max-width: 480px) {
  .hubtisch-field-grid--filters,
  .hubtisch-field-grid--bounds {
    grid-template-columns: 1fr;
  }

  .hubtisch-field-grid--bounds .hubtisch-field--minmax {
    border-left: none;
    padding-left: 0;
  }
}

.hubtisch-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 0;
}

.hubtisch-field__label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: var(--ui-font-caption, 12px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text, #0f172a);
  cursor: pointer;
}

.hubtisch-field__icon {
  display: flex;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05rem;
  color: var(--accent, #009493);
  opacity: 0.92;
}

.hubtisch-field__icon svg {
  width: 100%;
  height: 100%;
}

.hubtisch-field__icon--down svg {
  transform: scaleY(-1);
  transform-origin: center;
}

.hubtisch-field__icon--sm {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0;
}

.hubtisch-field__unit {
  font-weight: 500;
  color: var(--muted, #64748b);
}

.hubtisch-field__control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hubtisch-field__control input {
  flex: 1;
  min-width: 0;
}

.hubtisch-field-clear {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  background: var(--surface, #fff);
  color: var(--muted, #64748b);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.hubtisch-field-clear:hover,
.hubtisch-field-clear:focus-visible {
  border-color: var(--accent, #009493);
  color: var(--accent, #009493);
  outline: none;
}

.hubtisch-field input,
.hubtisch-field select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: var(--radius-sm, 6px);
  background: color-mix(in srgb, var(--surface, #fff) 92%, var(--accent, #009493) 8%);
  color: var(--text, #0f172a);
  font-size: var(--ui-font-body, 14px);
  line-height: 1.25;
  min-height: 2.625rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hubtisch-field input::placeholder {
  color: #94a3b8;
}

.hubtisch-field input:hover,
.hubtisch-field select:hover {
  border-color: #94a3b8;
}

.hubtisch-field input:focus,
.hubtisch-field select:focus {
  outline: none;
  border-color: var(--accent, #009493);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #009493) 22%, transparent);
  background: var(--surface, #fff);
}

.hubtisch-card__foot {
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid var(--border, #e2e8f0);
  background: color-mix(in srgb, var(--surface, #fff) 96%, #f1f5f9 4%);
}

.hubtisch-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hubtisch-sort-row__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--ui-font-caption, 12px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #64748b);
}

.hubtisch-sort-row__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hubtisch-field--inline select {
  min-width: 9.5rem;
  min-height: 2.25rem;
}

.hubtisch-results-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.hubtisch-status {
  min-height: 1.2em;
  margin: 0;
  font-size: var(--ui-font-caption, 12px);
  color: var(--muted, #64748b);
}

.hubtisch-results .table-wrap,
.hubtisch-table-wrap {
  margin-top: 0.15rem;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border, #e2e8f0);
}

.hubtisch-catalog-table {
  table-layout: auto;
  width: 100%;
}

.hubtisch-catalog-table thead th,
.hubtisch-catalog-table tbody td {
  box-sizing: border-box;
}

.hubtisch-catalog-table thead th:nth-child(4),
.hubtisch-catalog-table tbody td:nth-child(4) {
  padding-right: 0.12rem;
  text-align: right;
}

.hubtisch-catalog-table thead th:nth-child(5),
.hubtisch-catalog-table tbody td:nth-child(5) {
  padding-left: 0.12rem;
  text-align: right;
}

.hubtisch-typ-badge {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
  line-height: 1.3;
  text-align: left;
}

#hubtisch-table th.col-typ,
#hubtisch-table td.col-typ {
  text-align: left;
  white-space: nowrap;
  width: auto;
  min-width: 12rem;
}

#hubtisch-table .hubtisch-typ-filter {
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.16rem 0.45rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  background: color-mix(in srgb, var(--text) 4%, var(--surface, #fff));
  color: var(--text);
  font-family: inherit;
  font-size: var(--ui-font-caption, 12px);
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

#hubtisch-table .hubtisch-typ-filter:hover,
#hubtisch-table .hubtisch-typ-filter:focus-visible {
  background: color-mix(in srgb, var(--text) 8%, var(--surface, #fff));
  border-color: color-mix(in srgb, var(--text) 22%, var(--border));
  color: var(--text);
  text-decoration: none;
  outline: none;
}

.hubtisch-cell-filter {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: inherit;
  padding: 0.1rem 0.15rem;
  margin: -0.1rem -0.15rem;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  text-align: right;
  width: 100%;
  text-decoration: underline dotted transparent;
  transition: background 0.12s ease, color 0.12s ease, text-decoration-color 0.12s ease;
}

.hubtisch-cell-filter:hover,
.hubtisch-cell-filter:focus-visible {
  background: rgba(0, 148, 147, 0.1);
  color: var(--accent, #009493);
  text-decoration-color: var(--accent, #009493);
  outline: none;
}

.hubtisch-cell-menu {
  position: fixed;
  z-index: 40;
  min-width: 9.5rem;
  padding: 0.35rem;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.hubtisch-cell-menu__item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--ui-font-body, 14px);
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  color: var(--text, #0f172a);
}

.hubtisch-cell-menu__item.is-active {
  background: rgba(0, 148, 147, 0.12);
  color: var(--accent, #009493);
  font-weight: 600;
}

.hubtisch-cell-menu__item:hover,
.hubtisch-cell-menu__item:focus-visible {
  background: rgba(0, 148, 147, 0.1);
  color: var(--accent, #009493);
  outline: none;
}

.hubtisch-cell-menu__item--clear {
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border, #e2e8f0);
  color: var(--muted, #64748b);
  font-size: var(--ui-font-caption, 12px);
}

.hubtisch-cell-menu__item--clear:hover,
.hubtisch-cell-menu__item--clear:focus-visible {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
}

.hubtisch-empty {
  margin-top: 1rem;
  color: var(--muted, #64748b);
}

/*
 * Tabellenhöhe: Filter + Kopfzeile sind variabel — nicht per fester vh-Rechnung.
 * Seite = Viewport, Scroll nur in .table-wrap (tables.css overflow: auto).
 */
body[data-page="hubtische"] .hubtisch-head {
  flex-shrink: 0;
}

body[data-page="hubtische"] .page-assistant-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
  gap: var(--hubtisch-gap);
}

body[data-page="hubtische"] .hubtisch-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body[data-page="hubtische"] .hubtisch-catalog {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hubtisch-gap);
}

body[data-page="hubtische"] .hubtisch-filter-panel {
  flex-shrink: 0;
}

body[data-page="hubtische"] .hubtisch-results {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

/* Abstand Filter → Tabelle nur einmal über .hubtisch-catalog { gap } — nicht doppelt über .hubtisch-results */
body[data-page="hubtische"] .hubtisch-results-bar {
  flex-shrink: 0;
  margin: 0;
}

body[data-page="hubtische"] .hubtisch-results-bar:not(:has(.hubtisch-status:not(:empty))) {
  display: none;
}

body[data-page="hubtische"] .hubtisch-status {
  margin: 0 0 var(--hubtisch-gap);
}

body[data-page="hubtische"] .hubtisch-status:empty {
  display: none;
  margin: 0;
}

body[data-page="hubtische"] .hubtisch-table-wrap.table-wrap--sticky-head {
  flex: 1;
  min-height: 8rem;
  max-height: none;
}

html[data-density] body[data-page="hubtische"] .hubtisch-table-wrap.table-wrap--sticky-head {
  max-height: none;
}

.hubtisch-assistant-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hubtisch-gap);
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  width: 100%;
}

.hubtisch-product-visual {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
  max-height: min(280px, 30vh);
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

.hubtisch-assistant-stack .assistant-panel {
  width: 100%;
  align-self: stretch;
}

body[data-page="hubtische"] .assistant-panel {
  position: static;
  top: auto;
  align-self: stretch;
  max-height: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body[data-page="hubtische"] .assistant-shell {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

@media (max-width: 900px) {
  body[data-page="hubtische"] .app-main {
    max-height: none;
    overflow: visible;
  }

  body[data-page="hubtische"] .page-assistant-layout,
  body[data-page="hubtische"] .hubtisch-main,
  body[data-page="hubtische"] .hubtisch-catalog,
  body[data-page="hubtische"] .hubtisch-results {
    overflow: visible;
    min-height: auto;
  }

  body[data-page="hubtische"] .hubtisch-table-wrap.table-wrap--sticky-head {
    flex: none;
    max-height: min(calc(100dvh - 14rem), 720px);
  }

  .hubtisch-product-visual {
    max-width: min(100%, 360px);
    max-height: min(220px, 26vh);
  }

  body[data-page="hubtische"] .assistant-panel {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100dvh - 2rem);
  }

  body[data-page="hubtische"] .assistant-shell {
    height: min(720px, calc(100dvh - 2rem));
    max-height: calc(100dvh - 2rem);
  }
}

.hubtisch-row-link {
  cursor: pointer;
}

.hubtisch-row-link:hover td {
  background: rgba(0, 148, 147, 0.06);
}

body[data-page="hubtisch-detail"] {
  --hubtisch-price-cta: #e8921a;
  --hubtisch-price-cta-hover: #cf7d12;
  --hubtisch-price-cta-border-hover: #b86d0f;
}

body[data-page="hubtisch-detail"] .app-main {
  max-width: 960px;
  gap: 0.35rem;
}

body[data-page="hubtisch-detail"] .page-top-nav {
  margin-bottom: 0;
}

.hubtisch-page-legal {
  margin: 1.1rem 0 0.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border, #e2e8f0);
  font-size: var(--ui-font-caption, 12px);
  line-height: 1.35;
  color: var(--muted, #64748b);
  text-align: left;
}

.hubtisch-page-legal p {
  margin: 0 0 0.12rem;
}

.hubtisch-page-legal p:last-child {
  margin-bottom: 0;
}

.hubtisch-detail__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.hubtisch-detail__hero-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 16rem;
  min-width: 0;
}

.hubtisch-detail__hero-foot {
  margin-top: auto;
  padding-top: 1rem;
}

.hubtisch-detail__title {
  margin: 0.35rem 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.25;
  font-weight: 600;
}

.hubtisch-detail__meta {
  margin: 0;
  font-size: var(--ui-font-body, 14px);
  color: var(--muted);
}

.hubtisch-detail__meta--sub {
  margin-top: 0.25rem;
  font-size: var(--ui-font-caption, 12px);
}

.hubtisch-detail__nr {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 500;
}

.hubtisch-detail__hero-price {
  margin-top: 0;
}

.hubtisch-detail__hero-price .hubtisch-detail-price__value {
  font-size: 1.5rem;
}

.hubtisch-detail__hero-price .hubtisch-detail-price__hint,
.hubtisch-detail__hero-price .hubtisch-detail-price__locked {
  margin-top: 0.35rem;
}

.hubtisch-detail__hero-price .hubtisch-detail-login {
  margin-top: 0.65rem;
}

.hubtisch-detail-price__ek {
  margin: 0.5rem 0 0;
  font-size: var(--ui-font-body, 14px);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 500;
}

.hubtisch-detail__visual-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 0 1 min(100%, 420px);
  width: min(100%, 420px);
  max-width: 100%;
  margin: 0;
}

.hubtisch-detail__visual {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 18px rgba(15, 23, 42, 0.05);
}

.hubtisch-detail__sample-label {
  position: absolute;
  right: 0.55rem;
  bottom: 0.5rem;
  margin: 0;
  padding: 0.15rem 0.35rem;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: none;
  pointer-events: none;
  border-radius: 3px;
}

.hubtisch-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.hubtisch-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 18px rgba(15, 23, 42, 0.05);
}

.hubtisch-detail-card__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--accent, #009493) 0%, #00b8a9 55%, #5eead4 100%);
}

.hubtisch-detail-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem 0.65rem;
}

.hubtisch-detail-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-md, 12px);
  background: color-mix(in srgb, var(--accent, #009493) 12%, transparent);
  color: var(--accent, #009493);
}

.hubtisch-detail-card__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.hubtisch-detail-card__title {
  margin: 0;
  font-size: var(--ui-font-panel-title, 15px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.hubtisch-detail-dl {
  margin: 0;
  padding: 0 1.1rem 0.85rem;
}

.hubtisch-detail-dl__row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 38%) 1fr;
  gap: 0.75rem 1.25rem;
  margin: 0 -1.1rem;
  padding: 0.4rem 1.1rem;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-size: var(--ui-font-body, 14px);
  transition: background-color 0.15s ease;
}

.hubtisch-detail-dl__row:last-child {
  border-bottom: none;
}

@media (hover: hover) {
  .hubtisch-detail-dl__row:hover {
    background: color-mix(in srgb, var(--accent, #009493) 16%, var(--surface, #fff));
  }

  .hubtisch-detail-dl__row:hover dt {
    color: color-mix(in srgb, var(--muted) 55%, var(--text) 45%);
  }
}

.hubtisch-detail-dl__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.hubtisch-detail-dl__row dd {
  margin: 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 500;
}

.hubtisch-detail-card--metadata {
  grid-column: 1 / -1;
}

.hubtisch-detail-card--metadata .hubtisch-detail-dl__row {
  grid-template-columns: minmax(11rem, 16rem) 1fr;
}

.hubtisch-detail-card--price {
  border-top: 3px solid var(--accent, #009493);
}

.hubtisch-detail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0;
}

.hubtisch-detail-price__label {
  font-size: var(--ui-font-caption, 12px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hubtisch-detail-price__value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.hubtisch-detail-price__hint,
.hubtisch-detail-price__locked {
  margin: 0.65rem 0 0;
  font-size: var(--ui-font-caption, 12px);
  color: var(--muted);
  line-height: 1.45;
}

.hubtisch-detail-price__ek {
  margin: 0.55rem 0 0;
}

.hubtisch-detail-ek-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: var(--badge-radius, var(--radius-sm, 6px));
  font-size: var(--ui-font-caption, 12px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #fff;
  background: #dc2626;
  border: 1px solid color-mix(in srgb, #dc2626 78%, #450a0a);
  box-shadow: 0 1px 2px color-mix(in srgb, #dc2626 35%, transparent);
}

html[data-theme="dark"] .hubtisch-detail-ek-badge {
  background: #b91c1c;
  border-color: #991b1b;
}

a.hubtisch-detail-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: calc(0.75rem * var(--space-scale, 1));
  padding: calc(0.55rem * var(--space-scale, 1) * var(--control-scale, 1))
    calc(1rem * var(--space-scale, 1) * var(--control-scale, 1));
  min-height: calc(2.25rem * var(--control-scale, 1));
  font-size: var(--ui-font-panel-title, 15px);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  color: #fff;
  background: var(--hubtisch-price-cta, #e8921a);
  border: 2px solid var(--hubtisch-price-cta, #e8921a);
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 1px 3px rgba(120, 60, 0, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.hubtisch-detail-login:hover {
  color: #fff;
  text-decoration: none;
  background: var(--hubtisch-price-cta-hover, #cf7d12);
  border-color: var(--hubtisch-price-cta-border-hover, #b86d0f);
  box-shadow: 0 2px 6px rgba(120, 60, 0, 0.32);
}

a.hubtisch-detail-login:focus-visible {
  outline: 2px solid var(--hubtisch-price-cta-hover, #cf7d12);
  outline-offset: 2px;
}

.hubtisch-detail-empty {
  color: var(--muted);
}

.hubtisch-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.hubtisch-action-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 1.85rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface, #fff);
  color: var(--accent, #009493);
  font-size: var(--ui-font-caption, 12px);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.hubtisch-action-bar__icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.hubtisch-action-bar__icon svg {
  display: block;
}

.hubtisch-action-bar__label {
  white-space: nowrap;
}

a.hubtisch-action-bar__btn--link {
  text-decoration: none;
}

.hubtisch-action-bar__btn:hover {
  background: color-mix(in srgb, var(--accent, #009493) 10%, var(--surface, #fff));
  border-color: color-mix(in srgb, var(--accent, #009493) 35%, var(--border, #e2e8f0));
}

.hubtisch-action-bar__btn:focus-visible {
  outline: 2px solid var(--accent, #009493);
  outline-offset: 2px;
}

.hubtisch-action-bar__status {
  margin: 0.5rem 0 0;
  font-size: var(--ui-font-caption, 12px);
  line-height: 1.4;
  color: var(--muted, #6b7280);
}

.hubtisch-action-bar__status.is-error {
  color: #dc2626;
}

.hubtisch-action-dialog {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 0;
  max-width: min(100vw - 2rem, 34rem);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.hubtisch-action-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.hubtisch-action-dialog__form {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hubtisch-action-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem 0.85rem 1.25rem;
  background: color-mix(in srgb, var(--border, #e2e8f0) 42%, var(--surface, #fff));
  border-bottom: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px) var(--radius-lg, 16px) 0 0;
}

.hubtisch-action-dialog__head .hubtisch-action-dialog__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.hubtisch-action-dialog__close {
  flex-shrink: 0;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.2rem -0.35rem 0 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm, 8px);
  background: transparent;
  color: var(--muted, #6b7280);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hubtisch-action-dialog__close:hover {
  background: color-mix(in srgb, var(--border, #e2e8f0) 55%, transparent);
  color: var(--text, #111827);
}

.hubtisch-action-dialog__close:focus-visible {
  outline: 2px solid var(--accent, #009493);
  outline-offset: 2px;
}

.hubtisch-action-dialog__body {
  padding: 1rem 1.25rem 1.05rem;
  flex: 1;
  min-width: 0;
}

.hubtisch-action-dialog__foot {
  padding: 0.75rem 1.25rem 1rem;
  background: color-mix(in srgb, var(--border, #e2e8f0) 42%, var(--surface, #fff));
  border-top: 1px solid var(--border, #e2e8f0);
  border-radius: 0 0 var(--radius-lg, 16px) var(--radius-lg, 16px);
}

.hubtisch-action-dialog__body.login-form {
  gap: 0.65rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hubtisch-action-dialog__body.login-form label span {
  font-size: var(--ui-font-caption, 12px);
  font-weight: 500;
  color: var(--muted, #6b7280);
  margin-bottom: 0.3rem;
}

.hubtisch-action-dialog__body.login-form input {
  font: inherit;
  font-size: var(--ui-font-body, 14px);
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface, #fff);
  color: var(--text, #111827);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hubtisch-action-dialog__body.login-form input:hover {
  border-color: color-mix(in srgb, var(--accent, #009493) 25%, var(--border, #e2e8f0));
}

.hubtisch-action-dialog__body.login-form input:focus {
  outline: none;
  border-color: var(--accent, #009493);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #009493) 22%, transparent);
}

.hubtisch-action-dialog__name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
}

@media (max-width: 420px) {
  .hubtisch-action-dialog__name-row {
    grid-template-columns: 1fr;
  }
}

.hubtisch-action-dialog__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.hubtisch-action-dialog__lead {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted, #6b7280);
}

.hubtisch-action-dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: none;
}

.hubtisch-action-dialog__actions--split {
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.hubtisch-offer-skip {
  margin-right: auto;
  text-align: left;
  max-width: min(100%, 14rem);
  line-height: 1.25;
}

.hubtisch-action-dialog__status {
  margin: 0 0 0.75rem;
  font-size: var(--ui-font-caption, 12px);
  line-height: 1.4;
  color: var(--muted, #6b7280);
}

.hubtisch-action-dialog__status.is-error {
  color: #dc2626;
}

.hubtisch-action-dialog--offer {
  max-width: min(100vw - 2rem, 38rem);
}

.hubtisch-action-dialog--offer .hubtisch-action-dialog__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.35rem 0.65rem;
  padding: 1.35rem 1.15rem 1.25rem 1.35rem;
}

.hubtisch-action-dialog--offer .hubtisch-action-dialog__close {
  grid-column: 2;
  grid-row: 1;
  margin: 0.05rem 0 0;
  border: none;
  box-shadow: none;
  outline: none;
}

.hubtisch-action-dialog--offer .hubtisch-action-dialog__close:focus,
.hubtisch-action-dialog--offer .hubtisch-action-dialog__close:focus-visible {
  outline: none;
  box-shadow: none;
  border: none;
}

.hubtisch-action-dialog__title--offer {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
}

.hubtisch-offer-headline {
  display: block;
  font-family: "Plus Jakarta Sans", var(--font);
  font-size: clamp(1.375rem, 2.6vw + 0.9rem, 2rem);
  line-height: 1.15;
  text-wrap: balance;
}

.hubtisch-offer-headline__line {
  display: block;
}

.hubtisch-offer-headline__line:first-child {
  margin-bottom: 0.12em;
  font-size: 0.58em;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text, #1a1a1a) 55%, var(--muted, #6b7280));
}

.hubtisch-offer-headline__line--emph {
  font-size: 1em;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.028em;
  color: var(--accent, #009493);
}

.hubtisch-offer-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.hubtisch-offer-fieldset {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
}

.hubtisch-offer-fieldset__legend {
  padding: 0 0.25rem;
  font-size: var(--ui-font-caption, 12px);
  font-weight: 600;
  color: var(--text, #111827);
}

.hubtisch-offer-choice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-top: 0.35rem;
}

.hubtisch-offer-or {
  font-size: var(--ui-font-caption, 12px);
  color: var(--muted, #6b7280);
}

.hubtisch-offer-choice,
.hubtisch-offer-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--ui-font-body, 14px);
  cursor: pointer;
}

.hubtisch-offer-fieldset--checks {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hubtisch-offer-fieldset--checks .hubtisch-offer-fieldset__legend {
  margin-bottom: 0.15rem;
}

.hubtisch-offer-choice input,
.hubtisch-offer-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent, #009493);
}

.hubtisch-offer-remarks {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hubtisch-offer-remarks__label {
  font-size: var(--ui-font-caption, 12px);
  font-weight: 500;
  color: var(--muted, #6b7280);
}

.hubtisch-offer-remarks textarea {
  font: inherit;
  font-size: var(--ui-font-body, 14px);
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  resize: vertical;
  min-height: 4.5rem;
}

.hubtisch-offer-remarks textarea:focus {
  outline: none;
  border-color: var(--accent, #009493);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #009493) 22%, transparent);
}

@media (max-width: 520px) {
  .hubtisch-offer-choice-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hubtisch-offer-or {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  body[data-page="hubtisch-detail"] .page-top-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    margin-bottom: 0.25rem;
    padding-top: max(0.25rem, env(safe-area-inset-top));
    background: var(--bg);
  }
}

/* Eco-Kennzeichnung (Kraus-Herst.-Nr. 11… / 12… / 13…) */
.hubtisch-catalog-table .col-eco {
  width: 1%;
  min-width: 0;
  padding-left: 0.35rem;
  padding-right: 0.5rem;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.hubtisch-eco-badge {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.hubtisch-eco-badge--series-11 {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}

.hubtisch-eco-badge--series-11:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.hubtisch-eco-badge--series-13 {
  border: 1px solid #94a3b8;
  background: #e2e8f0;
  color: #1e293b;
  font-weight: 600;
}

.hubtisch-eco-badge--series-13:hover {
  background: #cbd5e1;
  border-color: #64748b;
}

.hubtisch-eco-badge--yellow {
  border: 1px solid #eab308;
  background: #fef9c3;
  color: #854d0e;
}

.hubtisch-eco-badge--yellow:hover {
  background: #fef08a;
  border-color: #ca8a04;
}

.hubtisch-eco-badge:focus-visible {
  outline: 2px solid #ca8a04;
  outline-offset: 1px;
}

html[data-theme="dark"] .hubtisch-eco-badge--yellow {
  background: #422006;
  border-color: #ca8a04;
  color: #fde68a;
}

html[data-theme="dark"] .hubtisch-eco-badge--yellow:hover {
  background: #713f12;
}

html[data-theme="dark"] .hubtisch-eco-badge--series-11 {
  background: #334155;
  border-color: #64748b;
  color: #e2e8f0;
}

html[data-theme="dark"] .hubtisch-eco-badge--series-11:hover {
  background: #475569;
  border-color: #94a3b8;
}

html[data-theme="dark"] .hubtisch-eco-badge--series-13 {
  background: #1e293b;
  border-color: #475569;
  color: #cbd5e1;
}

html[data-theme="dark"] .hubtisch-eco-badge--series-13:hover {
  background: #334155;
  border-color: #64748b;
}

/* Anfrage erfolgreich — Bestätigungs-Modal */
.hubtisch-success-dialog {
  max-width: min(100vw - 2rem, 38rem);
  padding: 0;
  border: none;
  overflow: hidden;
}

.hubtisch-success {
  position: relative;
  padding: 2.5rem 2.25rem 2.25rem;
  text-align: center;
  background: var(--surface, #fff);
}

.hubtisch-success__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  margin: 0;
  border: none;
  box-shadow: none;
  outline: none;
}

.hubtisch-success__close:focus,
.hubtisch-success__close:focus-visible {
  outline: none;
  box-shadow: none;
}

.hubtisch-success__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #009493) 16%, var(--surface, #fff));
  color: var(--accent, #009493);
}

.hubtisch-success__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #009493);
}

.hubtisch-success__title {
  margin: 0 0 0.15rem;
  font-family: "Plus Jakarta Sans", var(--font);
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text, #1a1a1a);
}

.hubtisch-success__sub {
  margin: 0 0 1.65rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--muted, #6b7280);
}

.hubtisch-success__box {
  margin: 0 0 1.35rem;
  padding: 1.35rem 1.4rem 1.3rem;
  text-align: left;
  background: color-mix(in srgb, var(--border, #e2e8f0) 28%, var(--surface, #fff));
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 12px);
}

.hubtisch-success__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hubtisch-success-step;
}

.hubtisch-success__steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text, #1a1a1a);
  counter-increment: hubtisch-success-step;
}

.hubtisch-success__steps li:last-child {
  margin-bottom: 0;
}

.hubtisch-success__steps li::before {
  content: counter(hubtisch-success-step);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent, #009493);
}

.hubtisch-success__footnote {
  margin: 0 0 1.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted, #6b7280);
}

.hubtisch-success__actions {
  display: flex;
  justify-content: center;
}

.hubtisch-success__primary {
  min-width: min(100%, 20rem);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm, 8px);
}

html[data-theme="dark"] .hubtisch-success__box {
  background: color-mix(in srgb, var(--border) 35%, var(--surface));
  border-color: var(--border);
}

html[data-theme="dark"] .hubtisch-eco-badge:focus-visible {
  outline-color: #eab308;
}

.hubtisch-catalog-table .col-price,
#hubtisch-table th.col-price {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent, #009493);
}

html[data-theme="dark"] .hubtisch-catalog-table .col-price,
html[data-theme="dark"] #hubtisch-table th.col-price {
  color: #2dd4bf;
}

.hubtisch-catalog-table.hubtisch-table--show-prices .col-price {
  min-width: 5.75rem;
}
                                                                                                                                                                                                                                                                                                                        