/* fs_hexavisu – Hexagon-Wandplaner
   Nur Template-Tokens (fs_v9 liefert --fs-*, Fallbacks = fs_v7-Werte). Kein hartkodiertes Markenblau. */

.hv {
  --hv-accent: var(--fs-color-accent, #3B5998);
  --hv-accent-hover: var(--fs-color-accent-hover, #2F477A);
  --hv-brand: var(--fs-brand-polysound, #7BA8C9);
  --hv-brand-tint: var(--fs-brand-polysound-tint, #C8E0F3);
  --hv-text: var(--fs-color-text, #2F3E46);
  --hv-text-body: var(--fs-color-text-body, #3d4c55);
  --hv-muted: var(--fs-color-text-muted, #8B9BA3);
  --hv-surface: var(--fs-color-surface, #ffffff);
  --hv-surface-alt: var(--fs-color-surface-alt, #F8FAFB);
  --hv-sunken: var(--fs-color-surface-sunken, #E8EEF2);
  --hv-border: var(--fs-color-border, #E8EEF2);
  --hv-border-strong: var(--fs-color-border-strong, #d1d5db);
  --hv-success: var(--fs-color-success, #1f7a4d);
  --hv-success-soft: var(--fs-color-success-soft, #e4f2ea);
  --hv-warning: var(--fs-color-warning, #8a5d0c);
  --hv-warning-soft: var(--fs-color-warning-soft, #fbf0da);
  --hv-danger: var(--fs-color-danger, #8f2a1e);
  --hv-danger-soft: var(--fs-color-danger-soft, #f7e7e3);
  --hv-font-head: var(--fs-font-headline, "Varela Round", sans-serif);
  --hv-font-body: var(--fs-font-body, "Merriweather", serif);
  --hv-font-mono: var(--fs-font-mono, "Space Mono", monospace);
  --hv-radius-sm: var(--fs-radius-sm, 0.5rem);
  --hv-radius-md: var(--fs-radius-md, 0.75rem);
  --hv-radius-lg: var(--fs-radius-lg, 1rem);
  --hv-radius-full: var(--fs-radius-full, 9999px);
  --hv-shadow-sm: var(--fs-shadow-sm, 0 2px 8px rgba(20, 33, 42, 0.06));
  --hv-shadow-md: var(--fs-shadow-md, 0 10px 25px rgba(20, 33, 42, 0.1));
  --hv-shadow-lg: var(--fs-shadow-lg, 0 20px 40px rgba(20, 33, 42, 0.15));
  --hv-s1: var(--fs-space-1, 0.25rem);
  --hv-s2: var(--fs-space-2, 0.5rem);
  --hv-s3: var(--fs-space-3, 0.75rem);
  --hv-s4: var(--fs-space-4, 1rem);
  --hv-s5: var(--fs-space-5, 1.5rem);
  --hv-s6: var(--fs-space-6, 2rem);
  --hv-s7: var(--fs-space-7, 3rem);
  --hv-t-xs: var(--fs-text-xs, 0.75rem);
  --hv-t-sm: var(--fs-text-sm, 0.875rem);
  --hv-t-base: var(--fs-text-base, 1rem);
  --hv-t-md: var(--fs-text-md, 1.125rem);
  --hv-t-lg: var(--fs-text-lg, 1.25rem);
  --hv-t-xl: var(--fs-text-xl, 1.5rem);
  --hv-t-2xl: var(--fs-text-2xl, clamp(1.75rem, 3.5vw, 2.5rem));
  --hv-ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --hv-side-w: 380px;
  --hv-touch: 44px;

  font-family: var(--hv-font-body);
  color: var(--hv-text-body);
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 var(--hv-s4) var(--hv-s7);
  box-sizing: border-box;
}
.hv *, .hv *::before, .hv *::after { box-sizing: border-box; }
.hv [hidden] { display: none !important; }
.hv button { font-family: var(--hv-font-head); line-height: 1.2; }
.hv-info, .hv-popover-del, .hv-toast button { font-size: 1rem; }
.hv button:focus-visible, .hv input:focus-visible, .hv select:focus-visible, .hv .hv-svg:focus-visible {
  outline: 3px solid var(--hv-accent); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { .hv * { transition: none !important; animation: none !important; } }

/* ---------- Kopf ---------- */
.hv-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--hv-s5);
  padding: var(--hv-s6) 0 var(--hv-s5);
}
.hv-eyebrow { margin-bottom: var(--hv-s3); }
.hv-title {
  font-family: var(--hv-font-head); font-weight: 700; font-size: var(--hv-t-2xl); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--hv-text); margin: 0 0 var(--hv-s2);
}
.hv-lead { font-size: var(--hv-t-base); line-height: 1.6; color: var(--hv-text-body); max-width: 60ch; margin: 0; }
.hv-head-actions { display: flex; flex-wrap: wrap; gap: var(--hv-s2); justify-content: flex-end; flex-shrink: 0; }

.hv-chip {
  display: inline-flex; align-items: center; gap: var(--hv-s2);
  min-height: var(--hv-touch); padding: 0 var(--hv-s4);
  border: 1.5px solid var(--hv-border-strong); border-radius: var(--hv-radius-full);
  background: var(--hv-surface); color: var(--hv-text);
  font-family: var(--hv-font-head); font-size: var(--hv-t-sm); font-weight: 600;
  cursor: pointer; transition: border-color var(--hv-ease), background var(--hv-ease), transform var(--hv-ease);
  white-space: nowrap;
}
.hv-chip:hover:not(:disabled) { border-color: var(--hv-accent); background: var(--hv-surface-alt); transform: translateY(-1px); }
.hv-chip:disabled { opacity: 0.5; cursor: not-allowed; }
.hv-chip.is-active { border-color: var(--hv-accent); background: var(--hv-brand-tint); }
.hv-chip-sm { min-height: 36px; padding: 0 var(--hv-s3); font-size: var(--hv-t-xs); }
.hv-chip i { font-size: 1.1em; }

.hv-alert {
  display: flex; gap: var(--hv-s3); align-items: flex-start;
  background: var(--hv-warning-soft); color: var(--hv-warning);
  border-radius: var(--hv-radius-md); padding: var(--hv-s4); margin-bottom: var(--hv-s4); font-size: var(--hv-t-sm);
}
.hv-alert i { font-size: 1.3em; flex-shrink: 0; }

/* ---------- Layout ---------- */
.hv-main { display: grid; grid-template-columns: minmax(0, 1fr) var(--hv-side-w); grid-template-rows: auto auto; gap: var(--hv-s5); align-items: start; }

.hv-stage {
  background: var(--hv-surface); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg);
  box-shadow: var(--hv-shadow-sm); overflow: hidden;
}

/* Toolbar */
.hv-toolbar {
  display: flex; flex-wrap: wrap; gap: var(--hv-s2); align-items: center;
  padding: var(--hv-s3); border-bottom: 1px solid var(--hv-border); background: var(--hv-surface);
}
.hv-toolgroup { display: inline-flex; gap: 2px; padding: 2px; background: var(--hv-sunken); border-radius: var(--hv-radius-sm); }
.hv-toolgroup-right { margin-left: auto; background: transparent; padding: 0; gap: var(--hv-s2); }
.hv-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--hv-s2);
  min-width: 40px; height: 40px; padding: 0 var(--hv-s3);
  border: 0; border-radius: calc(var(--hv-radius-sm) - 2px); background: transparent; color: var(--hv-text);
  font-family: var(--hv-font-head); font-size: var(--hv-t-sm); font-weight: 600; cursor: pointer;
  transition: background var(--hv-ease), color var(--hv-ease), box-shadow var(--hv-ease);
}
.hv-tool i { font-size: 1.25rem; }
.hv-tool:hover:not(:disabled) { background: var(--hv-surface); box-shadow: var(--hv-shadow-sm); }
.hv-tool.is-active { background: var(--hv-text); color: #fff; }
.hv-tool:disabled { opacity: 0.4; cursor: not-allowed; }
.hv-tool-move { display: none; }
.hv-seg { display: inline-flex; padding: 2px; background: var(--hv-sunken); border-radius: var(--hv-radius-sm); }
.hv-seg-btn {
  height: 36px; padding: 0 var(--hv-s3); border: 0; border-radius: calc(var(--hv-radius-sm) - 2px); background: transparent;
  font-family: var(--hv-font-head); font-size: var(--hv-t-sm); font-weight: 700; color: var(--hv-text); cursor: pointer;
}
.hv-seg-btn.is-active { background: var(--hv-surface); box-shadow: var(--hv-shadow-sm); }
.hv-seg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Canvas */
.hv-canvas-wrap {
  position: relative; height: clamp(380px, 64vh, 780px);
  background:
    radial-gradient(circle at 1px 1px, rgba(47, 62, 70, 0.08) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--hv-surface-alt);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.hv-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.hv[data-tool="eraser"] .hv-svg { cursor: cell; }
.hv[data-tool="move"] .hv-svg, .hv-svg.is-panning { cursor: grab; }
.hv-svg.is-panning:active { cursor: grabbing; }
.hv-svg .hv-wall { fill: var(--hv-surface); stroke: var(--hv-border-strong); stroke-width: 3; }
.hv-svg .hv-wall-shadow { fill: rgba(20, 33, 42, 0.07); }
.hv-svg .hv-dot { fill: rgba(47, 62, 70, 0.14); pointer-events: none; }
.hv-svg .hv-hover { fill: none; stroke: var(--hv-accent); stroke-width: 4; pointer-events: none; opacity: 0; transition: opacity 0.12s; }
.hv-svg .hv-hover.is-on { opacity: 1; }
.hv-svg .hv-ghost { pointer-events: none; opacity: 0.55; }
.hv-svg .hv-sel { fill: none; stroke: var(--hv-text); stroke-width: 5; stroke-dasharray: 14 10; pointer-events: none; }
.hv-svg .hv-c { cursor: pointer; }
.hv-svg .hv-top-edge { fill: none; stroke: rgba(0, 0, 0, 0.22); stroke-width: 1.2; }
.hv-svg .hv-ruler { font-family: var(--hv-font-mono); font-size: 40px; fill: var(--hv-text-body); }
.hv-svg .hv-ruler-line { stroke: var(--hv-border-strong); stroke-width: 2; }
.hv-canvas-hint {
  position: absolute; left: 50%; bottom: var(--hv-s4); transform: translateX(-50%);
  background: rgba(47, 62, 70, 0.9); color: #fff; font-family: var(--hv-font-head); font-size: var(--hv-t-xs);
  padding: var(--hv-s2) var(--hv-s4); border-radius: var(--hv-radius-full); pointer-events: none;
  opacity: 0; transition: opacity var(--hv-ease); max-width: calc(100% - 2rem); text-align: center;
}
.hv-canvas-hint.is-on { opacity: 1; }
.hv-zoom { position: absolute; right: var(--hv-s3); bottom: var(--hv-s3); display: flex; flex-direction: column; gap: 2px; }
.hv-zoom-btn {
  width: 40px; height: 40px; border: 1px solid var(--hv-border); border-radius: var(--hv-radius-sm);
  background: var(--hv-surface); color: var(--hv-text); cursor: pointer; box-shadow: var(--hv-shadow-sm);
  display: grid; place-items: center; font-size: 1.1rem;
}

/* Wandleiste */
.hv-wallbar {
  display: flex; flex-wrap: wrap; gap: var(--hv-s3) var(--hv-s5); align-items: center;
  padding: var(--hv-s3) var(--hv-s4); border-top: 1px solid var(--hv-border); background: var(--hv-surface);
}
.hv-field { display: inline-flex; align-items: center; gap: var(--hv-s2); font-family: var(--hv-font-head); font-size: var(--hv-t-sm); color: var(--hv-text); }
.hv-field > span:first-child { font-weight: 700; }
.hv-field em { font-style: normal; color: var(--hv-muted); }
.hv-field .hv-unit { color: var(--hv-muted); }
.hv-field input[type="number"], .hv-field input[type="text"], .hv-field select {
  height: 40px; width: 5.2em; padding: 0 var(--hv-s2); border: 1.5px solid var(--hv-border-strong);
  border-radius: var(--hv-radius-sm); background: var(--hv-surface); color: var(--hv-text);
  font-family: var(--hv-font-head); font-size: var(--hv-t-sm); font-weight: 600; text-align: center; line-height: 38px;
  -webkit-appearance: none; appearance: none;
}
.hv-field select { width: auto; text-align: left; padding-right: 1.9rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232F3E46' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.6rem center; }
.hv-field input[type="range"] { width: 140px; accent-color: var(--hv-accent); }
.hv-field output { font-family: var(--hv-font-mono); font-size: var(--hv-t-xs); color: var(--hv-muted); min-width: 4em; }
.hv-wallpresets { display: flex; flex-wrap: wrap; gap: var(--hv-s2); }

/* ---------- Seitenleiste ---------- */
.hv-side { display: flex; flex-direction: column; gap: var(--hv-s4); position: sticky; top: calc(var(--hv-s4) + 80px); }
.hv-side-peek { display: none; }
.hv-h2 { font-family: var(--hv-font-head); font-size: var(--hv-t-md); font-weight: 700; color: var(--hv-text); margin: 0; }
.hv-mono { font-family: var(--hv-font-mono); font-size: var(--hv-t-xs); color: var(--hv-muted); }
.hv-card {
  background: var(--hv-surface); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg);
  box-shadow: var(--hv-shadow-sm); padding: var(--hv-s4);
}
.hv-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--hv-s3); margin-bottom: var(--hv-s3); }
.hv-details { display: flex; flex-direction: column; gap: var(--hv-s4); }

.hv-palette { composes: hv-card; background: var(--hv-surface); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); box-shadow: var(--hv-shadow-sm); padding: var(--hv-s4); }
.hv-palette-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--hv-s3); margin-bottom: var(--hv-s3); }
.hv-brush-name { font-family: var(--hv-font-mono); font-size: var(--hv-t-xs); color: var(--hv-muted); text-align: right; }
.hv-colors { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--hv-s2); padding: 5px; }
.hv-swatch {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--hv-radius-full); border: 0; padding: 0; cursor: pointer;
  background-color: var(--sw, #999); background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform var(--hv-ease), box-shadow var(--hv-ease);
}
.hv-swatch:hover { transform: scale(1.08); }
.hv-swatch.is-active { box-shadow: 0 0 0 2px var(--hv-surface), 0 0 0 4px var(--hv-text); transform: none; }
.hv-swatch.is-active::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 34%; height: 34%; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.hv-thick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; background: var(--hv-sunken); border-radius: var(--hv-radius-sm); margin-top: var(--hv-s3); }
.hv-thick-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; border: 0; border-radius: calc(var(--hv-radius-sm) - 2px); background: transparent; color: var(--hv-text);
  font-family: var(--hv-font-head); font-size: var(--hv-t-sm); font-weight: 700; cursor: pointer;
}
.hv-thick-btn.is-active { background: var(--hv-surface); box-shadow: var(--hv-shadow-sm); }
.hv-thick-btn small { font-family: var(--hv-font-mono); font-weight: 400; font-size: 0.65rem; color: var(--hv-muted); }
.hv-thick-icon { display: block; width: 26px; border-bottom: 2px solid currentColor; border-radius: 1px; opacity: 0.8; }
.hv-thick-icon.t1 { height: 5px; background: rgba(47, 62, 70, 0.18); }
.hv-thick-icon.t2 { height: 8px; background: rgba(47, 62, 70, 0.28); }
.hv-thick-icon.t3 { height: 14px; background: rgba(47, 62, 70, 0.4); }

/* Stückliste */
.hv-bom { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--hv-s2); max-height: 260px; overflow: auto; }
.hv-bom li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: var(--hv-s2); font-size: var(--hv-t-sm); }
.hv-bom .hv-bom-dot { width: 20px; height: 20px; border-radius: 50%; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.hv-bom .hv-bom-name { color: var(--hv-text); font-family: var(--hv-font-head); font-weight: 600; }
.hv-bom .hv-bom-parts { display: block; font-family: var(--hv-font-mono); font-size: var(--hv-t-xs); color: var(--hv-muted); }
.hv-bom .hv-bom-sum { font-family: var(--hv-font-mono); font-size: var(--hv-t-xs); color: var(--hv-text); white-space: nowrap; }
.hv-empty { margin: 0; font-size: var(--hv-t-sm); color: var(--hv-muted); }

/* Akustik */
.hv-info { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--hv-sunken); color: var(--hv-text); cursor: pointer; display: grid; place-items: center; }
.hv-acoustic-row { display: flex; align-items: center; justify-content: space-between; gap: var(--hv-s3); margin-bottom: var(--hv-s2); }
.hv-meter { height: 8px; border-radius: var(--hv-radius-full); background: var(--hv-sunken); overflow: hidden; margin: var(--hv-s2) 0; }
.hv-meter-fill { height: 100%; width: 0; border-radius: inherit; background: var(--hv-brand); transition: width 0.4s ease, background var(--hv-ease); }
.hv-meter-fill.is-good { background: var(--hv-success); }
.hv-meter-fill.is-strong { background: var(--hv-text); }
.hv-acoustic-text { margin: 0; font-size: var(--hv-t-sm); line-height: 1.5; }
.hv-acoustic-note { margin: var(--hv-s3) 0 0; font-size: var(--hv-t-xs); line-height: 1.5; color: var(--hv-muted); }

/* Kaufen */
.hv-buy { background: var(--hv-surface); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); box-shadow: var(--hv-shadow-md); padding: var(--hv-s4); }
.hv-buy-total { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--hv-s3); }
.hv-buy-label { font-size: var(--hv-t-sm); color: var(--hv-muted); }
.hv-buy-label b { color: var(--hv-text); font-family: var(--hv-font-head); }
.hv-buy-pricebox .price { display: block; font-family: var(--hv-font-head); }
.hv-buy .delivery-status { margin: var(--hv-s2) 0 0; font-family: var(--hv-font-head); font-weight: 700; }
.hv-buy .estimated-delivery { margin-top: var(--hv-s2) !important; }
.hv-buy .hv-shipfree { margin-top: var(--hv-s1); font-size: var(--hv-t-xs); }
.hv-buy-cta { margin-top: var(--hv-s3); }
.hv-buy-btn { width: 100%; display: block; }
.hv-buy .fs-buy-trust { margin-top: var(--hv-s3); }
.hv-buy-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.hv-buy-btn.is-busy { pointer-events: none; }
.hv-buy-note { display: flex; align-items: center; gap: var(--hv-s2); margin: var(--hv-s3) 0 0; font-size: var(--hv-t-xs); color: var(--hv-success); font-family: var(--hv-font-head); }
.hv-secondary { display: flex; flex-wrap: wrap; gap: var(--hv-s2) var(--hv-s4); margin-top: var(--hv-s3); padding-top: var(--hv-s3); border-top: 1px solid var(--hv-border); }
.hv-link {
  display: inline-flex; align-items: center; gap: var(--hv-s1); border: 0; background: none; padding: var(--hv-s1) 0;
  color: var(--hv-text); font-family: var(--hv-font-head); font-size: var(--hv-t-sm); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--hv-ease), color var(--hv-ease);
}
.hv-link:hover { color: var(--hv-accent); text-decoration-color: currentColor; }

/* Popover */
.hv-popover {
  position: fixed; z-index: 1060; background: var(--hv-surface); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-md);
  box-shadow: var(--hv-shadow-lg); padding: var(--hv-s3); width: 268px;
}
.hv-popover-colors { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: var(--hv-s3); }
.hv-popover-colors .hv-swatch { width: 26px; }
.hv-popover-row { display: flex; align-items: center; gap: var(--hv-s2); }
.hv-popover-thick { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; background: var(--hv-sunken); border-radius: var(--hv-radius-sm); }
.hv-popover-thick button { height: 34px; border: 0; border-radius: calc(var(--hv-radius-sm) - 2px); background: transparent; font-family: var(--hv-font-head); font-weight: 700; font-size: var(--hv-t-xs); cursor: pointer; color: var(--hv-text); }
.hv-popover-thick button.is-active { background: var(--hv-surface); box-shadow: var(--hv-shadow-sm); }
.hv-popover-del { width: 38px; height: 38px; border: 0; border-radius: var(--hv-radius-sm); background: var(--hv-danger-soft); color: var(--hv-danger); cursor: pointer; display: grid; place-items: center; }

/* Modal (Vorlagen) */
.hv-modal { position: fixed; inset: 0; z-index: 1070; display: grid; place-items: center; padding: var(--hv-s4); background: rgba(20, 33, 42, 0.55); backdrop-filter: blur(4px); }
.hv-modal-card { width: min(760px, 100%); max-height: 92vh; overflow: auto; background: var(--hv-surface); border-radius: var(--hv-radius-lg); box-shadow: var(--hv-shadow-lg); padding: var(--hv-s5); }
.hv-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--hv-s2); }
.hv-modal-lead { margin: 0 0 var(--hv-s4); font-size: var(--hv-t-sm); color: var(--hv-muted); }
.hv-preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--hv-s3); margin-bottom: var(--hv-s5); }
.hv-preset {
  display: flex; flex-direction: column; gap: var(--hv-s2); padding: var(--hv-s3); border: 1.5px solid var(--hv-border); border-radius: var(--hv-radius-md);
  background: var(--hv-surface); cursor: pointer; text-align: left; transition: border-color var(--hv-ease), transform var(--hv-ease), box-shadow var(--hv-ease);
}
.hv-preset:hover { border-color: var(--hv-accent); transform: translateY(-2px); box-shadow: var(--hv-shadow-md); }
.hv-preset.is-active { border-color: var(--hv-text); box-shadow: 0 0 0 1px var(--hv-text); }
.hv-preset-swatches { display: flex; gap: 3px; }
.hv-preset-swatches span { flex: 1; height: 28px; border-radius: 4px; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.hv-preset b { font-family: var(--hv-font-head); color: var(--hv-text); font-size: var(--hv-t-sm); }
.hv-preset small { font-family: var(--hv-font-mono); font-size: var(--hv-t-xs); color: var(--hv-muted); }
.hv-generate { border-top: 1px solid var(--hv-border); padding-top: var(--hv-s4); }
.hv-generate-row { display: flex; flex-wrap: wrap; gap: var(--hv-s3) var(--hv-s5); margin-bottom: var(--hv-s4); }
.hv-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--hv-s2); }

/* Toast */
.hv-toast {
  position: fixed; left: 50%; bottom: calc(var(--hv-s5) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1080;
  background: var(--hv-text); color: #fff; font-family: var(--hv-font-head); font-size: var(--hv-t-sm); line-height: 1.35;
  padding: var(--hv-s3) var(--hv-s4); border-radius: var(--hv-radius-sm); box-shadow: var(--hv-shadow-lg);
  display: flex; align-items: center; gap: var(--hv-s3); width: max-content; max-width: min(420px, calc(100% - 2rem)); text-align: left;
}
.hv-toast button { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: var(--hv-radius-full); padding: var(--hv-s1) var(--hv-s3); cursor: pointer; font-weight: 700; }
.hv-toast.is-error { background: var(--hv-danger); }
.hv-toast.is-success { background: var(--hv-success); }

/* ---------- Tablet / Mobil ---------- */
@media (max-width: 1279px) { .hv { --hv-side-w: 330px; } }



/* ---------- Zeile im Warenkorb (wie Positionszeilen) ---------- */
.hv-cartrow { padding: 0; margin: 0; max-width: none; font-family: inherit; }
.hv-cartrow .col-prd { display: flex; align-items: center; gap: var(--hv-s3); }
.hv-cartrow-img { display: block; width: 120px; flex-shrink: 0; border-radius: var(--hv-radius-sm); overflow: hidden; background: var(--hv-surface-alt); border: 1px solid var(--hv-border); }
.hv-cartrow-img img { display: block; width: 100%; height: auto; }
.hv-cartrow-data { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hv-cartrow-title { font-family: var(--hv-font-head); font-weight: 700; font-size: var(--hv-t-base); color: var(--hv-text) !important; text-decoration: none !important; }
.hv-cartrow-meta { display: flex; flex-wrap: wrap; gap: var(--hv-s1) var(--hv-s3); font-size: var(--hv-t-xs); color: var(--hv-text-body); }
.hv-cartrow-actions { display: flex; flex-wrap: wrap; gap: var(--hv-s1) var(--hv-s3); margin-top: 2px; }
.hv-cartrow-actions .hv-link { font-size: var(--hv-t-xs); }


/* ---------- Teaser auf Artikelseiten ---------- */
.hv-teaser { padding: 0; margin: 0 0 var(--hv-s4); max-width: none; }
.hv-teaser-card {
  display: grid; grid-template-columns: 96px 1fr; gap: var(--hv-s3); align-items: center; text-decoration: none !important;
  background: var(--hv-brand-tint); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); padding: var(--hv-s3) var(--hv-s4);
  color: var(--hv-text) !important; transition: transform var(--hv-ease), box-shadow var(--hv-ease);
}
.hv-teaser-card:hover { transform: translateY(-2px); box-shadow: var(--hv-shadow-md); }
.hv-teaser-art svg { display: block; width: 96px; height: auto; }
.hv-teaser-body { display: flex; flex-direction: column; gap: 4px; }
.hv-teaser-eyebrow { font-family: var(--hv-font-head); font-size: var(--hv-t-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--hv-muted); }
.hv-teaser-title { font-family: var(--hv-font-head); font-size: var(--hv-t-md); line-height: 1.2; color: var(--hv-text); }
.hv-teaser-text { font-size: var(--hv-t-sm); color: var(--hv-text-body); }
.hv-teaser-btn { align-self: flex-start; margin-top: var(--hv-s2); }


/* ---------- Foto, 3D, AR ---------- */
.hv-svg .hv-photo { opacity: 0; transition: opacity var(--hv-ease); pointer-events: none; }
.hv-svg.is-photo .hv-photo { opacity: 1; }
.hv-svg.is-photo .hv-dot { opacity: 0.35; }
.hv-svg.is-photo .hv-wall { fill: #fff; }
.hv-svg.is-calib { cursor: crosshair; }
.hv-svg .hv-calib-line { stroke: var(--hv-accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 18 12; pointer-events: none; }
.hv-svg .hv-calib-label { font-family: var(--hv-font-mono); font-size: 34px; font-weight: 700; fill: var(--hv-accent); pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 8; }
.hv-photo-ctrl { display: flex; flex-wrap: wrap; gap: var(--hv-s2); }
.hv-calib { width: 300px; }
.hv-calib-q { margin: 0 0 var(--hv-s2); font-family: var(--hv-font-head); font-weight: 700; color: var(--hv-text); }
.hv-calib-presets { display: flex; flex-wrap: wrap; gap: var(--hv-s1); margin-bottom: var(--hv-s3); }
.hv-calib-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hv-s2); }
.hv-calib-form input { width: 6em; height: 40px; padding: 0 var(--hv-s2); border: 1.5px solid var(--hv-border-strong); border-radius: var(--hv-radius-sm); font-family: var(--hv-font-mono); text-align: center; }
.hv-3d { position: absolute; inset: 0; background: linear-gradient(180deg, #e9edf0 0%, #f6f7f8 55%, #e3e7ea 100%); }
.hv-3d canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.hv-3d-hint { position: absolute; left: 50%; top: var(--hv-s3); transform: translateX(-50%); background: rgba(47, 62, 70, 0.85); color: #fff; font-family: var(--hv-font-head); font-size: var(--hv-t-xs); padding: var(--hv-s1) var(--hv-s3); border-radius: var(--hv-radius-full); pointer-events: none; display: inline-flex; gap: var(--hv-s2); align-items: center; white-space: nowrap; }
.hv-tool-ar { background: var(--hv-brand-tint); }
.hv-tool-ar.is-busy { opacity: 0.6; pointer-events: none; }
.hv-ar-overlay { position: fixed; inset: 0; z-index: 1090; background: #f4f5f6; display: flex; flex-direction: column; }
.hv-ar-bar { display: flex; align-items: center; justify-content: space-between; padding: var(--hv-s3) var(--hv-s4); padding-top: calc(var(--hv-s3) + env(safe-area-inset-top)); background: var(--hv-surface); border-bottom: 1px solid var(--hv-border); }
.hv-ar-title { font-family: var(--hv-font-head); font-weight: 700; color: var(--hv-text); display: inline-flex; gap: var(--hv-s2); align-items: center; }
.hv-ar-viewer { flex: 1; width: 100%; min-height: 0; --poster-color: transparent; }
.hv-ar-start { position: absolute; left: 50%; bottom: var(--hv-s5); transform: translateX(-50%); white-space: nowrap; }
.hv-ar-hint { margin: 0; padding: var(--hv-s3) var(--hv-s4); padding-bottom: calc(var(--hv-s3) + env(safe-area-inset-bottom)); font-size: var(--hv-t-sm); line-height: 1.5; color: var(--hv-text-body); background: var(--hv-surface); border-top: 1px solid var(--hv-border); text-align: center; }
body.hv-ar-open { overflow: hidden; }

.hv[data-hv-view="3d"] .hv-zoom, .hv[data-hv-view="3d"] .hv-canvas-hint { display: none; }

/* ---------- Banner auf Kategorieseiten ---------- */
.hv-catbanner { padding: 0; margin: 0 0 var(--hv-s5); max-width: none; }
.hv-catbanner-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--hv-s5); align-items: center; text-decoration: none !important;
  background: var(--hv-brand-tint); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); padding: var(--hv-s4) var(--hv-s5);
  color: var(--hv-text) !important; transition: transform var(--hv-ease), box-shadow var(--hv-ease);
}
.hv-catbanner-card:hover { transform: translateY(-2px); box-shadow: var(--hv-shadow-md); }
.hv-catbanner-art svg { display: block; width: 160px; height: auto; }
.hv-catbanner-body { display: flex; flex-direction: column; gap: 4px; }
.hv-catbanner-title { font-family: var(--hv-font-head); font-size: var(--hv-t-xl); line-height: 1.15; color: var(--hv-text); }
.hv-catbanner-btn { white-space: nowrap; }


/* ---------- Stärken: Mix + Optimieren ---------- */
.hv-thick { grid-template-columns: repeat(4, 1fr); }
.hv-thick-icon.tmix { display: flex; align-items: flex-end; gap: 2px; border: 0; background: none; height: 14px; width: 26px; opacity: 0.85; }
.hv-thick-icon.tmix i { flex: 1; border-radius: 1px; background: rgba(47, 62, 70, 0.32); border-bottom: 2px solid currentColor; }
.hv-thick-icon.tmix i:nth-child(1) { height: 5px; } .hv-thick-icon.tmix i:nth-child(2) { height: 14px; } .hv-thick-icon.tmix i:nth-child(3) { height: 8px; }
.hv-optimize { margin-top: var(--hv-s2); width: 100%; justify-content: center; }


/* ---------- Akustik-Eingaben ---------- */
.hv-acoustic-inputs { display: flex; flex-wrap: wrap; gap: var(--hv-s2) var(--hv-s3); margin-bottom: var(--hv-s2); }
.hv-field .hv-input-sm { width: 4.2em; }
.hv-field-existing { flex-basis: 100%; }
.hv-existing-presets { display: flex; flex-wrap: wrap; gap: var(--hv-s1); margin-bottom: var(--hv-s3); }
.hv-rt { display: inline-flex; align-items: center; gap: var(--hv-s2); font-family: var(--hv-font-head); font-size: var(--hv-t-lg); color: var(--hv-text); }
.hv-rt span { color: var(--hv-muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.hv-rt i { color: var(--hv-muted); font-size: var(--hv-t-base); }
.hv-rt b { color: var(--hv-text); font-weight: 700; }

/* ---------- Akustik-Karte unter der Wandfläche ---------- */
.hv-acoustics { grid-column: 1; grid-row: 2; }
.hv-side { grid-column: 2; grid-row: 1 / span 2; }
.hv-acoustics .hv-acoustic-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--hv-s3) var(--hv-s6); align-items: start; }
.hv-acoustics .hv-field-existing { flex-basis: auto; }


/* ---------- 3D-Ladezustand ---------- */
.hv-3d-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: var(--hv-s3); background: rgba(248, 250, 251, 0.82); backdrop-filter: blur(2px); font-family: var(--hv-font-head); font-weight: 700; color: var(--hv-text); z-index: 3; }
.hv-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--hv-border-strong); border-top-color: var(--hv-accent); animation: hv-spin 0.8s linear infinite; }
@keyframes hv-spin { to { transform: rotate(360deg); } }
.hv-seg-btn.is-busy { opacity: 0.6; pointer-events: none; }

/* ==========================================================================
   Mobil (< 1024 px): App-Modus. Planer füllt den Viewport unter dem Shop-Kopf,
   Werkzeuge schweben über der Wand, Bottom-Sheet in drei Zuständen mit Tabs.
   ========================================================================== */
[data-mobile] { display: none; }
.hv-title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--hv-s3); }
.hv-c-new { animation: hv-pop 0.16s ease-out; }
@keyframes hv-pop { from { opacity: 0.25; } to { opacity: 1; } }
.hv-sheet-summary b.is-bump { animation: hv-bump 0.25s ease-out; }
@keyframes hv-bump { 40% { transform: scale(1.08); } }
.hv-tabpanel:not(.is-active) { display: block; } /* Desktop: alle Panels sichtbar (Wand/Wirkung sind leer) */

@media (max-width: 1279px) { .hv { --hv-side-w: 330px; } }

@media (max-width: 1023px) {
  html.hv-app-html, body.hv-app { overflow: hidden !important; height: 100% !important; overscroll-behavior: none; }
  body.hv-app { position: fixed !important; inset: 0; width: 100%; }
  body.hv-app #consent-manager, body.hv-app #cw-widget-holder, body.hv-app .woot-widget-bubble, body.hv-app #cw-bubble-holder, body.hv-app [id^="trustbadge"], body.hv-app [class*="trustbadge"] { display: none !important; }
  body.hv-app #h-us { display: none; }
  [data-mobile] { display: initial; }
  .hv-tabs[data-mobile] { display: flex; }
  .hv-tabpanel[data-mobile] { display: block; }
  .hv-tabpanel:not(.is-active) { display: none; }
  .hv-fab[data-mobile], .hv-fab-views[data-mobile], .hv-fab-chips[data-mobile] { display: flex; }

  /* Rahmen: Planer als feste Fläche unter dem Kopf */
  body.hv-app .hv { position: fixed; left: 0; right: 0; top: var(--hv-header, 56px); bottom: 0; max-width: none; padding: 0; margin: 0; display: flex; flex-direction: column; overflow: hidden; z-index: 5; background: var(--hv-surface-alt); }
  body.hv-app #content-wrapper { margin-top: 0 !important; }
  /* Kopf nur für Screenreader/SEO, Platz geht an die Wand */
  .hv-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; margin: -1px; }
  .hv-eyebrow, .hv-lead, .hv-head-actions { display: none; }
  .hv-title { font-size: var(--hv-t-base); margin: 0; }
  .hv-intro-btn { min-width: 36px; height: 36px; }
  #hv-intro-chips .hv-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; margin-top: var(--hv-s3); }
  .hv-alert { margin: var(--hv-s2) var(--hv-s3); }
  .hv-main { display: flex; flex-direction: column; align-items: stretch; flex: 1; min-height: 0; padding: 0; gap: 0; }
  .hv-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; padding-bottom: var(--hv-peek, 190px); background: transparent; touch-action: none; }
  .hv-toolbar { display: none; }
  .hv-canvas-wrap { flex: 1; min-height: 0; height: auto; border-radius: 0; }
  .hv-wallbar { border: 0; padding: 0; background: transparent; }
  .hv-wallbar .hv-tab-heading { display: flex; width: 100%; margin: 0 0 var(--hv-s1); }
  .hv-wallbar .hv-field, .hv-acoustics .hv-field { font-size: var(--hv-t-sm); }
  .hv-sheet-body .hv-chip-sm { min-height: 34px; font-size: var(--hv-t-xs); }
  .hv-sheet-body .hv-h2 { font-size: var(--hv-t-base); }
  .hv-sheet-body .hv-acoustic-text, .hv-sheet-body .hv-bom li, .hv-sheet-body .hv-buy-note { font-size: var(--hv-t-sm); }
  .hv-sheet-body .hv-optimize { font-size: var(--hv-t-xs); }
  .hv-acoustics { border: 0; box-shadow: none; border-radius: 0; padding: 0; }
  .hv-acoustics .hv-acoustic-body { grid-template-columns: 1fr; }
  .hv-canvas-hint { bottom: auto; top: 52px; left: 64px; right: var(--hv-s2); transform: none; max-width: none; }
  .hv-zoom { display: none; }

  /* Schwebende Bedienelemente */
  .hv-fab { position: absolute; flex-direction: column; gap: 2px; padding: 3px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-md); box-shadow: var(--hv-shadow-md); z-index: 4; backdrop-filter: blur(6px); }
  .hv-fab-tools { left: var(--hv-s2); top: 50%; transform: translateY(-50%); }
  .hv-fab-divider { display: block; height: 1px; margin: 3px 6px; background: var(--hv-border); }
  .hv-fab-btn { width: 44px; height: 44px; border: 0; border-radius: calc(var(--hv-radius-md) - 3px); background: transparent; color: var(--hv-text-body); font-size: 1.15rem; display: grid; place-items: center; }
  .hv-fab-btn.is-active { background: var(--hv-text); color: #fff; }
  .hv-fab-btn:disabled { opacity: 0.35; }
  .hv-fab-views { position: absolute; left: 50%; bottom: var(--hv-s2); transform: translateX(-50%); background: rgba(232, 238, 242, 0.92); box-shadow: var(--hv-shadow-sm); z-index: 4; }
  .hv-fab-views .hv-seg-btn { height: 32px; padding: 0 var(--hv-s3); font-size: 0.75rem; color: var(--hv-text); display: inline-flex; align-items: center; gap: 4px; }
  .hv-seg-ar:not([hidden]) { display: inline-flex; }
  .hv-seg-ar i { font-size: 1rem; }
  .hv-seg-ar.is-busy { opacity: 0.6; pointer-events: none; }
  .hv-fab-chips { position: absolute; left: 0; right: 0; top: var(--hv-s2); gap: var(--hv-s2); padding: 0 var(--hv-s2); overflow-x: auto; scrollbar-width: none; z-index: 4; transition: opacity var(--hv-ease); }
  .hv-fab-chips::-webkit-scrollbar { display: none; }
  .hv-fab-chips .hv-chip { flex: 0 0 auto; min-height: 34px; padding: 0 var(--hv-s3); font-size: 0.72rem; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); box-shadow: var(--hv-shadow-sm); }
  .hv-fab-chips .hv-chip i { font-size: 0.9rem; }
  .hv.is-drawing .hv-fab-chips { opacity: 0.25; pointer-events: none; }
  .hv-chip-icon { padding: 0 !important; width: 34px; justify-content: center; }
  .hv-chip-icon i { font-size: 1.15rem; }
  .hv[data-hv-view="3d"] .hv-fab-tools, .hv[data-hv-view="3d"] .hv-fab-chips { display: none; }
  .hv-3d-hint { top: 52px; left: 64px; right: var(--hv-s2); transform: none; white-space: normal; text-align: left; }

  /* Bottom-Sheet */
  .hv-side {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1040; gap: 0;
    background: var(--hv-surface); border-top: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg) var(--hv-radius-lg) 0 0;
    box-shadow: 0 -12px 30px rgba(20, 33, 42, 0.14); display: flex; flex-direction: column; overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom); height: 190px; max-height: 96vh;
  }
  .hv-side.is-animated { transition: height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s ease; }
  body.sidecart-open .hv-side, body.hv-ar-open .hv-side { transform: translateY(110%); }
  .hv-side-peek { display: flex; align-items: center; gap: var(--hv-s2); padding: var(--hv-s3) var(--hv-s3) 0 var(--hv-s4); position: relative; flex-shrink: 0; touch-action: none; }
  .hv-sheet-handle { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--hv-s2); border: 0; background: transparent; padding: 0; min-height: 44px; font-family: var(--hv-font-head); font-size: var(--hv-t-md); color: var(--hv-text); text-align: left; }
  .hv-sheet-grip { position: absolute; left: 50%; top: 5px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--hv-border-strong); }
  .hv-sheet-summary { flex: 1; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
  .hv-sheet-summary b { font-size: var(--hv-t-md); color: var(--fs-color-primary, var(--hv-text)); display: inline-block; transform-origin: left center; }
  .hv-sheet-summary small { font-size: var(--hv-t-xs); color: var(--hv-muted); font-family: var(--hv-font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hv-sheet-handle i { transition: transform var(--hv-ease); }
  .hv-side.is-open .hv-sheet-handle i { transform: rotate(180deg); }
  .hv-peek-buy { flex: 0 0 auto; width: auto !important; max-width: 58%; min-height: 42px; padding: 0 var(--hv-s3) !important; font-size: 0.8rem !important; font-weight: 700; display: inline-flex; align-items: center; gap: var(--hv-s2); white-space: nowrap; }
  .hv-peek-buy:disabled { opacity: 0.55; }
  .hv-palette { flex-shrink: 0; border: 0; box-shadow: none; border-radius: 0; padding: var(--hv-s2) var(--hv-s4) var(--hv-s3); }
  .hv-palette-head { margin-bottom: 0; }
  .hv-palette-head h2 { display: none; }
  .hv-brush-name { text-align: left; font-size: 0.7rem; }
  .hv-colors { display: flex; overflow-x: auto; overflow-y: hidden; gap: var(--hv-s2); padding: 6px 6px; margin: 0 -6px; scrollbar-width: none; }
  .hv-colors::-webkit-scrollbar { display: none; }
  .hv-swatch { width: 40px; flex: 0 0 40px; }
  .hv-thick { margin-top: var(--hv-s2); }
  .hv-thick-btn { min-height: 40px; flex-direction: row; font-size: 0.75rem; white-space: nowrap; gap: 4px; padding: 0 2px; }
  .hv-thick-icon { display: none; }
  .hv-side:not(.is-open) .hv-optimize { display: none; }
  .hv-sheet-body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 var(--hv-s4) var(--hv-s5); display: none; }
  .hv-side.is-open .hv-sheet-body { display: block; }
  .hv-tabs { position: sticky; top: 0; z-index: 2; gap: 2px; padding: 2px; margin: 0 0 var(--hv-s3); background: var(--hv-sunken); border-radius: var(--hv-radius-sm); }
  .hv-tab { flex: 1; min-height: 38px; white-space: nowrap; border: 0; border-radius: calc(var(--hv-radius-sm) - 2px); background: transparent; font-family: var(--hv-font-head); font-size: var(--hv-t-xs); font-weight: 700; color: var(--hv-text); display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
  .hv-tab.is-active { background: var(--hv-surface); box-shadow: var(--hv-shadow-sm); }
  .hv-tabpanel { display: none; }
  .hv-tabpanel.is-active { display: block; }
  .hv-details { display: flex; flex-direction: column; gap: var(--hv-s4); padding: 0; margin-bottom: var(--hv-s4); }
  .hv-card { padding: var(--hv-s3) 0; border: 0; box-shadow: none; border-radius: 0; }
  .hv-buy { border: 0; border-top: 1px solid var(--hv-border); border-radius: 0; box-shadow: none; padding: var(--hv-s3) 0; display: block; }
  .hv-secondary { display: flex; }
  .hv-toast { bottom: auto; top: calc(var(--hv-header, 56px) + 52px); left: 64px; right: var(--hv-s2); transform: none; width: auto; max-width: none; font-size: var(--hv-t-xs); padding: var(--hv-s2) var(--hv-s3); }
  .hv-field input[type="number"], .hv-field input[type="text"], .hv-field select { font-size: 16px !important; height: 42px !important; min-height: 0 !important; line-height: 40px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  .hv-modal { padding: var(--hv-s3); }

  /* Coach-Marks */
  /* Coach liegt in <body>, daher Template-Tokens mit festen Fallbacks statt --hv-* */
  .hv-coach { position: fixed; z-index: 1085; width: min(320px, calc(100vw - 16px)); background: var(--fs-color-text, #2F3E46); color: #fff; border-radius: var(--fs-radius-md, 0.75rem); padding: 0.75rem 1rem; box-shadow: 0 20px 40px rgba(20, 33, 42, 0.25); font-family: var(--fs-font-headline, "Varela Round", sans-serif); }
  .hv-coach-text { margin: 0 0 0.5rem; font-size: 0.875rem; line-height: 1.4; }
  .hv-coach-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
  .hv-coach .hv-link { color: #fff; opacity: 0.8; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
}

/* Kleine Höhen (Landscape): Stärkenreihe im Peek ausblenden */
@media (max-width: 1023px) and (max-height: 520px) {
  .hv-side:not(.is-open) .hv-thick { display: none; }
  .hv-fab-tools { top: auto; bottom: 56px; transform: none; }
}

/* ---------- Kaufknopf: Zustände ---------- */
.hv-spinner-sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255,255,255,0.45); border-top-color: #fff; display: inline-block; vertical-align: -3px; }
.hv-buy-btn.is-busy, .hv-peek-buy.is-busy { opacity: 0.85 !important; }
.hv-buy-btn.is-done, .hv-peek-buy.is-done { background: var(--hv-success) !important; border-color: var(--hv-success) !important; color: #fff !important; opacity: 1 !important; pointer-events: none; }
.hv-buy-btn.is-busy .hv-spinner-sm { margin-right: 6px; }

/* ---------- Intro-Dialog (Mobil) ---------- */
.hv-intro-list { display: flex; flex-direction: column; gap: var(--hv-s2); margin: var(--hv-s3) 0 var(--hv-s4); }
.hv-intro-row { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: var(--hv-s3); width: 100%; text-align: left; padding: var(--hv-s3); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-md); background: var(--hv-surface-alt); color: var(--hv-text); cursor: pointer; }
.hv-intro-row > i:first-child { font-size: 1.4rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--hv-radius-sm); background: var(--hv-brand-tint); color: var(--hv-text); }
.hv-intro-row span { display: flex; flex-direction: column; min-width: 0; }
.hv-intro-row b { font-family: var(--hv-font-head); font-size: var(--hv-t-sm); }
.hv-intro-row small { font-family: var(--hv-font-body); font-size: var(--hv-t-xs); color: var(--hv-muted); line-height: 1.35; }
.hv-intro-caret { color: var(--hv-muted); }
.hv-modal-actions-full .fs-btn { width: 100%; }
.hv-intro-card .hv-modal-lead { margin-bottom: 0; }

/* ---------- Eingabedialog (Mobil, oben im Bild) ---------- */
.hv-prompt { position: fixed; inset: 0; z-index: 1090; background: rgba(20, 33, 42, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: calc(var(--hv-header, 56px) + 12px) var(--hv-s3) 0; }
.hv-prompt-card { width: 100%; max-width: 420px; background: var(--hv-surface); border-radius: var(--hv-radius-md); box-shadow: var(--hv-shadow-lg); padding: var(--hv-s4); }
.hv-prompt-label { display: block; font-family: var(--hv-font-head); font-weight: 700; font-size: var(--hv-t-sm); color: var(--hv-text); margin-bottom: var(--hv-s2); }
.hv-prompt-row { display: flex; align-items: center; gap: var(--hv-s2); }
.hv-prompt-row input { flex: 1; min-width: 0; height: 52px !important; font-family: var(--hv-font-head); font-size: 24px !important; font-weight: 700; text-align: center; border: 1.5px solid var(--hv-border-strong); border-radius: var(--hv-radius-sm); color: var(--hv-text); background: var(--hv-surface); }
.hv-prompt-unit { font-family: var(--hv-font-head); font-size: var(--hv-t-base); color: var(--hv-muted); min-width: 2.2em; }
.hv-prompt-presets { display: flex; flex-wrap: wrap; gap: var(--hv-s1); margin-top: var(--hv-s3); }
.hv-prompt-presets:empty { display: none; }
.hv-prompt-actions { display: flex; justify-content: space-between; align-items: center; margin-top: var(--hv-s3); }

/* ---------- Maßstab-Anleitung und Anordnung verschieben ---------- */
.hv[data-tool="shift"] .hv-svg { cursor: move; }
.hv[data-tool="shift"] .hv-svg .hv-c { cursor: move; }
.hv-calib-guide { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: center; padding: var(--hv-s3); background: rgba(248, 250, 251, 0.6); backdrop-filter: blur(2px); overflow: auto; }
.hv-calib-guide-card { display: grid; grid-template-columns: 220px 1fr; gap: var(--hv-s4); width: min(640px, 100%); background: var(--hv-surface); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); box-shadow: var(--hv-shadow-lg); padding: var(--hv-s4); }
.hv-calib-guide-art { width: 220px; height: auto; border-radius: var(--hv-radius-sm); }
.hv-calib-guide-body p { margin: var(--hv-s2) 0; font-size: var(--hv-t-sm); line-height: 1.5; }
.hv-calib-examples { list-style: none; margin: 0 0 var(--hv-s3); padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--hv-t-xs); color: var(--hv-text-body); font-family: var(--hv-font-head); }
.hv-calib-examples i { color: var(--hv-accent); margin-right: 4px; }
.hv-calib-guide-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--hv-s3); }
.hv-svg .hv-calib-line { stroke-width: 8; }
@media (max-width: 1023px) {
  .hv-calib-guide { position: fixed; top: var(--hv-header, 56px); padding: var(--hv-s2); align-items: flex-start; }
  .hv-calib-guide-card { grid-template-columns: 1fr; gap: var(--hv-s3); padding: var(--hv-s3); }
  .hv-calib-guide-art { width: 100%; max-height: 120px; }
  .hv-calib-guide-body p { font-size: var(--hv-t-xs); }
  .hv-calib { position: fixed !important; left: var(--hv-s2) !important; right: var(--hv-s2) !important; top: calc(var(--hv-header, 56px) + 12px) !important; width: auto; }
  .hv-calib-form input { flex: 1 1 5em; min-width: 5em; font-family: var(--hv-font-head); font-weight: 600; }
  .hv-fab-tools .hv-fab-btn[data-tool="shift"] { border-top: 1px solid var(--hv-border); border-radius: 0; }
}

/* ============================================================
   Sektion „Hexagon-Wandplaner“ auf Startseite und Kategorieseiten
   ============================================================ */
.hv-section { padding: 0; margin: 0; max-width: none; }
.hv-section-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--hv-s6); align-items: center;
  background: var(--hv-brand-tint); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); padding: var(--hv-s6); overflow: hidden;
}
.hv-section-title { font-family: var(--hv-font-head); font-size: var(--hv-t-2xl); line-height: 1.1; margin: var(--hv-s2) 0 var(--hv-s3); color: var(--hv-text); }
.hv-section-lead { font-size: var(--hv-t-md); line-height: 1.6; margin: 0 0 var(--hv-s4); color: var(--hv-text-body); }
.hv-section-features { list-style: none; padding: 0; margin: 0 0 var(--hv-s5); display: grid; gap: var(--hv-s2); }
.hv-section-features li { display: flex; gap: var(--hv-s3); align-items: flex-start; font-size: var(--hv-t-sm); line-height: 1.5; color: var(--hv-text-body); }
.hv-section-features i { flex: none; width: 32px; height: 32px; border-radius: var(--hv-radius-sm); background: var(--hv-surface); color: var(--hv-text); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.hv-section-features b { font-family: var(--hv-font-head); font-weight: 700; color: var(--hv-text); }
.hv-section-actions { display: flex; flex-wrap: wrap; gap: var(--hv-s3); }
.hv-section-media { position: relative; display: block; text-decoration: none !important; padding: 0 6% 8% 0; }
.hv-section-shot { display: block; width: 100%; height: auto; border-radius: var(--hv-radius-md); box-shadow: var(--hv-shadow-lg); border: 1px solid var(--hv-border); background: var(--hv-surface); }
.hv-section-phone { position: absolute; right: 0; bottom: 0; width: 30%; height: auto; border-radius: 18px; box-shadow: var(--hv-shadow-lg); border: 4px solid var(--hv-text); background: var(--hv-surface); }
@media (max-width: 991px) {
  .hv-section-card { grid-template-columns: 1fr; padding: var(--hv-s5) var(--hv-s4); }
  .hv-section-media { margin: 0 auto; max-width: 520px; }
}

/* ============================================================
   Inhalt unterhalb des Planers (Ablauf, Produkt, Stärken, Montage, Sets, FAQ)
   ============================================================ */
.hv-content { margin-top: var(--hv-s7); display: grid; gap: var(--hv-s5); }
.hv-info-block { background: var(--hv-surface); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); padding: var(--hv-s6); box-shadow: var(--hv-shadow-sm); }
.hv-info-eyebrow { font-family: var(--hv-font-head); font-size: var(--hv-t-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--hv-muted); }
.hv-info-title { font-family: var(--hv-font-head); font-size: var(--hv-t-xl); line-height: 1.2; margin: var(--hv-s1) 0 var(--hv-s4); color: var(--hv-text); }
.hv-content p, .hv-content li, .hv-content dd { font-size: var(--hv-t-sm); line-height: 1.65; color: var(--hv-text-body); }
.hv-content p { margin: 0 0 var(--hv-s3); }
.hv-content h3 { font-family: var(--hv-font-head); font-size: var(--hv-t-md); margin: 0 0 var(--hv-s2); color: var(--hv-text); }
.hv-content a:not(.fs-btn) { color: var(--hv-accent); text-decoration: underline; text-underline-offset: 2px; }
.hv-info-links { margin: var(--hv-s3) 0 0; font-family: var(--hv-font-head); font-size: var(--hv-t-sm); }
.hv-steps { list-style: none; counter-reset: hv-step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hv-s5); }
.hv-steps li { counter-increment: hv-step; }
.hv-steps li::before { content: counter(hv-step); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--hv-text); color: #fff; font-family: var(--hv-font-head); font-weight: 700; align-items: center; justify-content: center; margin-bottom: var(--hv-s3); }
.hv-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--hv-s6); align-items: center; }
.hv-product img { width: 100%; height: auto; border-radius: var(--hv-radius-md); display: block; border: 1px solid var(--hv-border); }
.hv-facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--hv-s2) var(--hv-s4); }
.hv-facts dt { font-family: var(--hv-font-head); font-weight: 700; font-size: var(--hv-t-sm); color: var(--hv-text); }
.hv-facts dd { margin: 0; }
.hv-strength { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hv-s4); }
.hv-strength-card { border: 1px solid var(--hv-border); border-radius: var(--hv-radius-md); padding: var(--hv-s4); background: var(--hv-surface-alt); display: flex; flex-direction: column; }
.hv-strength-card p { flex: 1; }
.hv-strength-bar { display: block; height: 12px; border-radius: 3px; background: #3b3e42; margin-bottom: var(--hv-s3); box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.18); }
.hv-strength-price { font-family: var(--hv-font-mono); font-size: var(--hv-t-xs); color: var(--hv-muted); }
.hv-info-note { display: flex; gap: var(--hv-s3); align-items: flex-start; margin: var(--hv-s4) 0 0 !important; padding: var(--hv-s3) var(--hv-s4); background: var(--hv-brand-tint); border-radius: var(--hv-radius-sm); }
.hv-info-note i { flex: none; font-size: 20px; color: var(--hv-text); margin-top: 2px; }
.hv-bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--hv-s3); }
.hv-bullets li { display: flex; gap: var(--hv-s3); }
.hv-bullets i { flex: none; font-size: 20px; color: var(--hv-text); margin-top: 2px; }
.hv-bullets b { font-family: var(--hv-font-head); color: var(--hv-text); }
.hv-sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hv-s4); }
.hv-set { display: flex; flex-direction: column; gap: var(--hv-s1); padding: var(--hv-s4); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-md); text-decoration: none !important; color: var(--hv-text) !important; background: var(--hv-surface-alt); transition: transform var(--hv-ease), box-shadow var(--hv-ease); }
.hv-set:hover { transform: translateY(-2px); box-shadow: var(--hv-shadow-md); }
.hv-set b { font-family: var(--hv-font-head); font-size: var(--hv-t-sm); line-height: 1.3; }
.hv-set span { font-family: var(--hv-font-mono); font-size: var(--hv-t-xs); color: var(--hv-muted); }
.hv-faq details { border-top: 1px solid var(--hv-border); }
.hv-faq details:last-of-type { border-bottom: 1px solid var(--hv-border); }
.hv-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--hv-s3); align-items: center; padding: var(--hv-s3) 0; font-family: var(--hv-font-head); font-weight: 700; font-size: var(--hv-t-base); color: var(--hv-text); }
.hv-faq summary::-webkit-details-marker { display: none; }
.hv-faq summary::after { content: '+'; flex: none; font-size: 1.4em; line-height: 1; color: var(--hv-muted); }
.hv-faq details[open] summary::after { content: '–'; }
.hv-faq details p { margin: 0 0 var(--hv-s4); }
.hv-info-cta { display: flex; flex-wrap: wrap; gap: var(--hv-s3); align-items: center; justify-content: center; padding: var(--hv-s4) 0 0; }
@media (max-width: 1023px) {
  .hv-steps, .hv-strength, .hv-sets, .hv-product { grid-template-columns: 1fr; }
  .hv-facts { grid-template-columns: 1fr; gap: 0; }
  .hv-facts dd { margin-bottom: var(--hv-s2); }
  .hv-tabpanel .hv-content { margin-top: 0; gap: 0; }
  .hv-tabpanel .hv-info-block { padding: var(--hv-s4) 0; border: 0; border-top: 1px solid var(--hv-border); border-radius: 0; box-shadow: none; }
  .hv-tabpanel .hv-info-block:first-child { border-top: 0; padding-top: var(--hv-s2); }
  .hv-tabpanel .hv-info-title { font-size: var(--hv-t-lg); }
  .hv-tabpanel .hv-info-cta { padding-bottom: var(--hv-s5); }
  .hv-tabpanel .hv-info-cta .fs-btn { flex: 1 1 auto; justify-content: center; }
}
