/* Hanging-Planner (/hanging-planner/, Muster vavuro/hanging-planner, assets/js/hanging-planner.js) – nur auf dieser
   Seite geladen. Bildschirm wie der Frame-Fit-Rechner; beim Drucken nur Planer, Eingaben, Ergebnisliste und SVG. */
.vv-hp {
  box-sizing: border-box;
  max-width: 100%;
  margin-block: var(--wp--preset--spacing--50);
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-top: 3px solid var(--vv-gold);
}
.vv-hp[hidden],
.vv-hp [hidden] {
  display: none !important;
}
.vv-hp *,
.vv-hp *::before,
.vv-hp *::after {
  box-sizing: border-box;
}
.vv-hp__title,
.vv-article .wp-block-post-content .vv-hp__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}
.vv-hp__form {
  display: grid;
  gap: 1rem;
}
.vv-hp__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  align-items: end;
}
.vv-hp__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.vv-hp label,
.vv-hp legend {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  color: var(--wp--preset--color--ink);
}
.vv-hp__group,
.vv-hp__custom {
  min-width: 0;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wp--preset--color--line);
}
.vv-hp__group legend,
.vv-hp__custom legend {
  padding: 0 0.35rem;
}
.vv-hp__fields .vv-hp__group,
.vv-hp__custom,
.vv-hp__size-info,
.vv-hp__note {
  grid-column: 1 / -1;
}
.vv-hp__custom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1rem;
}
.vv-hp__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.vv-hp__choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-weight: 400;
  font-size: 1rem;
  cursor: pointer;
}
.vv-hp__choices input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--wp--preset--color--navy);
}
.vv-hp select,
.vv-hp input[type='text'] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--muted);
  border-radius: 2px;
}
.vv-hp select:focus-visible,
.vv-hp input:focus-visible,
.vv-hp button:focus-visible,
.vv-hp a:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}
.vv-hp__size-info,
.vv-hp p.vv-hp__size-info {
  margin: 0;
  font-weight: 600;
}
.vv-hp__note,
.vv-hp p.vv-hp__note {
  margin: 0 0 0.9rem;
  color: var(--wp--preset--color--muted);
  font-size: 0.9rem;
}
.vv-hp__form .vv-hp__note {
  margin: 0;
}
.vv-hp__result:not(:empty) {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wp--preset--color--line);
}
.vv-hp__result-title,
.vv-article .wp-block-post-content .vv-hp__result-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.2;
}
.vv-hp__nails-title,
.vv-article .wp-block-post-content .vv-hp__nails-title {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.15rem;
}
.vv-hp__result p {
  margin: 0 0 0.9rem;
}
.vv-hp__figures,
.vv-hp__nails {
  margin: 0;
  padding-left: 1.2rem;
  overflow-wrap: anywhere;
}
.vv-hp__figures li + li,
.vv-hp__nails li + li {
  margin-top: 0.3rem;
}
.vv-hp__error {
  padding: 0.75rem 1rem;
  background: var(--wp--preset--color--accent-soft);
  border-left: 3px solid var(--wp--preset--color--accent);
}
.vv-hp__figure {
  margin: 1.25rem 0 0;
  min-width: 0;
}
.vv-hp__preview:empty + .vv-hp__caption {
  display: none;
}
.vv-hp__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 26rem;
}
.vv-hp__caption {
  margin-top: 0.5rem;
  color: var(--wp--preset--color--muted);
  font-size: 0.9rem;
}
/* Vorschau: Wand hell, Möbel und Wandkanten gestrichelt, Rahmen in Marine, Nägel in Gold. */
.vv-hp__wall {
  fill: var(--wp--preset--color--base);
}
.vv-hp__floor {
  stroke: var(--wp--preset--color--muted);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.vv-hp__furniture,
.vv-hp__edge {
  fill: none;
  stroke: var(--wp--preset--color--muted);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
}
.vv-hp__frame {
  fill: var(--wp--preset--color--accent-soft);
  stroke: var(--wp--preset--color--navy);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.vv-hp__nail {
  fill: var(--wp--preset--color--accent);
}
.vv-hp__inputs {
  display: none;
}
.vv-hp__actions {
  margin: 1.25rem 0 0;
}
.vv-hp__button {
  min-height: 2.75rem;
  padding: 0.6rem 1.5rem;
  font: inherit;
  font-weight: 600;
  color: var(--wp--preset--color--night);
  background: var(--vv-gold);
  border: 1px solid var(--vv-gold);
  border-radius: 2px;
  cursor: pointer;
}
.vv-hp__button:hover {
  background: var(--wp--preset--color--accent-soft);
}
.vv-hp__shop {
  margin: 1.25rem 0 0;
  color: var(--wp--preset--color--muted);
}
.vv-hp__shop a {
  font-weight: 600;
}

/* Druckblatt: ohne Kopf, Navigation, Fußzeile, Seitentext und Shop-Hinweis; Eingaben als Liste statt Formular. */
@media print {
  body:has(#vv-hp) .wp-block-template-part,
  body:has(#vv-hp) header,
  body:has(#vv-hp) footer,
  body:has(#vv-hp) nav,
  body:has(#vv-hp) .vv-page-head,
  body:has(#vv-hp) .wp-block-post-content > :not(#vv-hp),
  .vv-hp__form,
  .vv-hp__actions,
  .vv-hp__shop,
  .vv-hp__caption,
  .vv-hp__noscript {
    display: none !important;
  }
  body:has(#vv-hp) .wp-block-post-content {
    padding: 0 !important;
  }
  .vv-hp {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }
  .vv-hp__inputs {
    display: block;
    margin: 0 0 1rem;
    padding-left: 1.2rem;
  }
  .vv-hp__inputs::before {
    content: 'Your inputs';
    display: block;
    margin-left: -1.2rem;
    font-weight: 600;
  }
  .vv-hp__result:not(:empty) {
    margin-top: 0;
  }
  .vv-hp__figure {
    break-inside: avoid;
  }
  .vv-hp__svg {
    max-height: 12cm;
  }
}
