/* =========================================================
   Fensterkant – Seitenlayout (ergänzt styles.css)
   Ergänzt styles.css: weniger Text, mehr Raum, Inhalte statt Werbesätze.
   ========================================================= */

/* Hero: nur Überschrift und eine Zeile */
.vb .hero__band-inner { padding-block: clamp(44px, 5vw, 76px) clamp(108px, 9vw, 128px); }
.vb .hero__title { font-size: clamp(32px, 4vw, 54px); max-width: 14em; }
.vb .hero__lead { margin-top: 12px; font: italic 400 clamp(19px, 1.7vw, 23px)/1.35 var(--serif); color: #dfe5ee; }

/* Weniger Leerraum unter dem Konfigurator */
.vb .hero__form { padding-bottom: clamp(32px, 4vw, 56px); }

/* Abschnitte: Titel statt Nummer + Einleitung */
.vb .section { padding-block: clamp(56px, 7vw, 96px); }
.vb-title { font-size: clamp(28px, 3vw, 38px); color: var(--navy); margin-bottom: clamp(24px, 3vw, 36px); padding-top: 14px; border-top: 2px solid var(--navy); }
.vb-title--light { color: var(--white); border-top-color: rgba(255,255,255,.5); }

/* Profile: Tabelle über die volle Breite */
.vb #profile .footnote { margin-top: 12px; }

/* Ablauf: eine Zeile, harte Fakten */
.vb-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.vb-flow li { display: flex; flex-direction: column; gap: 4px; padding: 22px 18px 6px 0; }
.vb-flow li + li { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
.vb-flow span { font: 400 34px/1 var(--serif); color: #e5b9ac; margin-bottom: 10px; }
.vb-flow strong { font: 500 20px/1.2 var(--serif); color: var(--white); }
.vb-flow em { font-style: normal; font-size: 14px; color: #c6cedb; }

/* FAQ ohne Einrückung */
.vb .faq__list { margin-left: 0; max-width: 860px; }

@media (max-width: 1080px) {
}
@media (max-width: 900px) {
  .vb .hero__band-inner { padding-block: 36px 96px; }
}
@media (max-width: 640px) {
  .vb-flow { grid-template-columns: 1fr; }
  .vb-flow li, .vb-flow li + li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .vb-flow span { font-size: 24px; margin: 0; width: 28px; }
  .vb-flow em { width: 100%; padding-left: 40px; }
}

/* ---------- Schlanker Funnel ---------- */
.funnel--slim { grid-template-columns: minmax(0, 860px); }
.progress--4 { grid-template-columns: repeat(4, 1fr); }
.funnel--slim .segmented { width: 100%; }
.funnel--slim .segmented label { flex: 1 1 auto; text-align: center; }
.funnel--slim .field-group { margin-bottom: 22px; }
.funnel__alt { margin-right: auto; padding: 0; background: none; border: 0; cursor: pointer; font: 500 14px/1.4 var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.funnel__alt:hover { color: var(--brick); text-decoration-color: currentColor; }
[data-prev]:not([hidden]) + .funnel__alt { margin-left: 0; }
.grid-plz--2 { grid-template-columns: 1fr 160px; }
.grid-plz--ort { grid-template-columns: 160px 1fr; }

/* ---------- Aufmaß-Buttons ---------- */
.nav__cta--split { display: flex; gap: 10px; }
.hero__aufmass { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; cursor: pointer; font: 500 15px/1 var(--sans); color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius); transition: background .15s, border-color .15s; }
.hero__aufmass::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='5' width='17' height='15.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M3.5 9.5h17M8 3v4M16 3v4' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='5' width='17' height='15.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M3.5 9.5h17M8 3v4M16 3v4' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero__aufmass:hover { background: rgba(255,255,255,.14); border-color: var(--white); }
.vb-flow__link { padding: 0; background: none; border: 0; font: inherit; color: #e5b9ac; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vb-flow__link:hover { color: var(--white); }
.mobile-cta__row { display: flex; gap: 10px; }
.mobile-cta__row .btn { flex: 1; min-height: 50px; padding: 0 12px; }

/* ---------- Dialog „Aufmaß buchen“ ---------- */
.booking { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(13,28,53,.35); overflow: hidden; }
.booking::backdrop { background: rgba(13,28,53,.6); }
.booking[open] { display: flex; animation: booking-in .22s ease-out; }
@keyframes booking-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.booking__form { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.booking__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.booking__kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); font-weight: 500; margin-bottom: 6px; }
.booking__head h2 { font-size: clamp(22px, 2.4vw, 27px); color: var(--navy); }
.booking__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--navy); cursor: pointer; }
.booking__close svg { width: 18px; height: 18px; }
.booking__close:hover { border-color: var(--navy); }
.booking__body, .booking__done { padding: 22px 28px 8px; overflow-y: auto; overscroll-behavior: contain; }
.booking__intro { font-size: 15px; color: var(--ink-2); margin-bottom: 20px; max-width: 40em; }
.booking .field { margin-bottom: 16px; }
.field-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.segmented--full { display: flex; width: 100%; }
.segmented--full label { flex: 1; text-align: center; }
.segmented--full span { padding: 12px 10px; }
.booking .field.is-invalid .segmented { border-color: var(--brick); }
.booking__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--white); }
.booking__foot span { font-size: 13px; color: var(--ink-3); }
.booking__done { padding-bottom: 20px; color: var(--navy); }
.booking__done svg { width: 44px; height: 44px; margin-bottom: 16px; }
.booking__done h3 { font-size: 24px; margin-bottom: 12px; }
.booking__done p { color: var(--ink-2); margin-bottom: 8px; }
.booking__done strong { color: var(--navy); }
body.booking-open { overflow: hidden; }
body.booking-open .mobile-cta { transform: translateY(110%); }

@media (max-width: 900px) {
  .nav__cta--split { flex-direction: column; margin-top: 24px; }
  .nav__cta--split .btn { width: 100%; min-height: 50px; }
}
@media (max-width: 640px) {
  .grid-plz--2 { grid-template-columns: 1fr; }
  .grid-plz--ort { grid-template-columns: 120px 1fr; }
  .grid-plz--ort > :last-child { grid-column: auto; }
  .funnel--slim .funnel__nav { flex-wrap: wrap; }
  .funnel__alt { order: 3; width: 100%; text-align: center; margin: 6px 0 0; }
  .booking { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .booking__head, .booking__body, .booking__done, .booking__foot { padding-left: 18px; padding-right: 18px; }
  .booking .grid-2 { grid-template-columns: 1fr; }
  .booking__foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .booking[open] { animation: none; } }

/* ---------- Beratung: gut sichtbar ---------- */
.nav__phone button { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 2px 4px; background: none; border: 0; cursor: pointer; text-align: right; }
.nav__phone small { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.nav__phone strong { font: 500 17px/1.1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav__phone button:hover strong { color: var(--brick); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__actions .hero__aufmass { margin-top: 0; }
.hero__beratung { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; cursor: pointer; font: 600 15px/1 var(--sans); color: var(--navy); background: var(--white); border: 1px solid var(--white); border-radius: var(--radius); transition: background .15s; }
.hero__beratung::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 3.5l3 3.4-1.8 2.6a12 12 0 0 0 6.7 6.7l2.6-1.8 3.4 3-1.6 3.1c-.4.7-1.2 1-2 .8A17.5 17.5 0 0 1 2.7 6.1c-.2-.8.1-1.6.8-2z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 3.5l3 3.4-1.8 2.6a12 12 0 0 0 6.7 6.7l2.6-1.8 3.4 3-1.6 3.1c-.4.7-1.2 1-2 .8A17.5 17.5 0 0 1 2.7 6.1c-.2-.8.1-1.6.8-2z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero__beratung:hover { background: var(--paper); }

.funnel__alt { font-size: 14px; color: var(--ink-3); text-decoration: none; cursor: default; }
.funnel__alt button { padding: 0; background: none; border: 0; cursor: pointer; font: 500 14px/1.4 var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.funnel__alt button:hover { color: var(--brick); text-decoration-color: currentColor; }

.vb-consult { background: var(--brick); color: #f6dcd4; }
.vb-consult__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: center; padding-block: clamp(40px, 5vw, 64px); }
.vb-consult h2 { font-size: clamp(26px, 3vw, 38px); color: var(--white); margin-bottom: 8px; }
.vb-consult p { font-size: 16.5px; max-width: 34em; }
.vb-consult__actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.vb-consult__phone { display: flex; flex-direction: column; font: 500 clamp(26px, 2.8vw, 34px)/1.15 var(--serif); color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums; }
.vb-consult__phone small { font: 500 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #f6dcd4; }
.vb-consult__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.vb-consult .btn--light { color: var(--brick-dark); }

.callnow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 16px; margin-bottom: 20px; background: var(--paper); border-left: 3px solid var(--brick); }
.callnow span { font-size: 14px; color: var(--ink-2); }
.callnow a { font: 500 20px/1.2 var(--serif); color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; }
.callnow small { font-size: 12.5px; color: var(--ink-3); }

.mobile-cta__row--3 .btn { font-size: 14px; padding: 0 8px; }

@media (max-width: 1240px) { .nav__phone small { display: none; } .nav__list { gap: 18px; } }
@media (max-width: 900px) {
  .vb-consult__inner { grid-template-columns: 1fr; }
  .nav__phone { order: -1; margin: 8px 0 4px; }
  .nav__phone button { align-items: flex-start; padding: 12px 0; text-align: left; }
  .nav__phone small { display: block; }
  .nav__phone strong { font-size: 22px; }
}
@media (max-width: 640px) {
  .hero__actions > button { flex: 1 1 100%; justify-content: center; }
  .vb-consult__buttons, .vb-consult__buttons .btn { width: 100%; }
}

/* Header bei mittlerer Breite: Aufmaß-Button ausblenden (bleibt im Hero, Band und Funnel), keine Zeilenumbrüche */
.nav__cta--split .btn { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 901px) {
  .nav__cta--split .btn--ghost { display: none; }
}

/* =========================================================
   Kontakt-Leiste: WhatsApp · Telefon · E-Mail
   ========================================================= */
.contact-dock__toggle, .contact-dock__backdrop { display: none; }
.contact-dock__list { list-style: none; margin: 0; padding: 0; }

/* Desktop: rechts am Rand, mittig; Beschriftung fährt beim Überfahren heraus */
@media (min-width: 901px) {
  .contact-dock { position: fixed; right: env(safe-area-inset-right, 0px); top: 50%; transform: translateY(-50%); z-index: 80; }
  .contact-dock__list { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,.18); box-shadow: -6px 10px 30px rgba(13,28,53,.22); }
  .contact-dock__item { position: relative; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; color: var(--white); background: var(--navy); text-decoration: none; transition: background .15s; }
  .contact-dock__item svg { width: 22px; height: 22px; }
  .contact-dock__item:hover, .contact-dock__item:focus-visible { background: var(--navy-900); }
  .contact-dock__item--wa { background: #1f7a4d; }
  .contact-dock__item--wa:hover, .contact-dock__item--wa:focus-visible { background: #17633e; }
  .contact-dock__label {
    position: absolute; right: 100%; top: 0; bottom: 0; display: flex; align-items: center;
    padding: 0 16px; white-space: nowrap; font: 500 15px/1 var(--sans); color: var(--white); background: inherit;
    opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .18s, transform .18s;
  }
  .contact-dock__item:hover .contact-dock__label, .contact-dock__item:focus-visible .contact-dock__label { opacity: 1; transform: none; }
  .contact-dock__item:focus-visible { outline: 2px solid var(--brick); outline-offset: -2px; }
  body.booking-open .contact-dock, body.nav-open .contact-dock { visibility: hidden; }
}

/* Mobil: runder Button, der die drei Kontaktwege nach oben auffächert */
@media (max-width: 900px) {
  .contact-dock { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 95; transition: bottom .25s ease; }
  body.cta-visible .contact-dock { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  body.booking-open .contact-dock, body.nav-open .contact-dock { visibility: hidden; }

  .contact-dock__toggle {
    position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border: 0; border-radius: 50%; cursor: pointer;
    color: var(--white); background: var(--navy); box-shadow: 0 10px 26px rgba(13,28,53,.35);
    transition: background .2s, transform .2s;
  }
  .contact-dock__toggle svg { position: absolute; width: 26px; height: 26px; transition: opacity .2s, transform .25s; }
  .contact-dock__ico-close { opacity: 0; transform: rotate(-90deg); }
  .contact-dock.is-open .contact-dock__toggle { background: var(--brick); }
  .contact-dock.is-open .contact-dock__ico-open { opacity: 0; transform: rotate(90deg); }
  .contact-dock.is-open .contact-dock__ico-close { opacity: 1; transform: none; }
  .contact-dock__toggle:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

  .contact-dock__list { position: absolute; right: 2px; bottom: 70px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
  .contact-dock.is-open .contact-dock__list { pointer-events: auto; }
  .contact-dock__list li { opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.3,1.2); transition-delay: calc((2 - var(--i)) * 0s); }
  .contact-dock.is-open .contact-dock__list li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms); }
  .contact-dock__item { display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; text-decoration: none; }
  .contact-dock__item svg { flex: none; box-sizing: content-box; width: 22px; height: 22px; padding: 15px; border-radius: 50%; color: var(--white); background: var(--navy); box-shadow: 0 8px 20px rgba(13,28,53,.3); }
  .contact-dock__item--wa svg { background: #1f7a4d; }
  .contact-dock__label { padding: 9px 14px; font: 500 15px/1 var(--sans); color: var(--navy); background: var(--white); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(13,28,53,.18); white-space: nowrap; }

  .contact-dock__backdrop { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(13,28,53,.45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
  .contact-dock.is-open .contact-dock__backdrop { opacity: 1; visibility: visible; transition: opacity .2s, visibility 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-dock__list li, .contact-dock__toggle svg, .contact-dock__label { transition: none !important; }
}

/* =========================================================
   Schritt 1: Element-Kacheln mit technischer Zeichnung (Mehrfachauswahl)
   ========================================================= */
.step__hint { margin: -12px 0 18px; font-size: 14px; color: var(--ink-3); }
.step__hint span { color: var(--navy); font-weight: 600; }
.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile .tile__body {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%;
  padding: 22px 16px 18px; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.tile .tile__body::before { content: none; }
.tile__dwg { display: block; height: 68px; width: auto; max-width: 100%; margin: 0 auto 14px; color: var(--navy); }
.tile strong { font: 500 17px/1.25 var(--serif); color: var(--navy); }
.tile small { font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.tile__check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border: 1.5px solid var(--line-strong); border-radius: 2px; background: var(--white); transition: background .15s, border-color .15s; }
.tile__check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.tile:hover .tile__body { border-color: var(--navy); }
.tile input:checked + .tile__body { border-color: var(--navy); background: #f3f5f9; box-shadow: inset 0 0 0 1px var(--navy); }
.tile input:checked + .tile__body .tile__check { background: var(--navy); border-color: var(--navy); }
.tile input:checked + .tile__body .tile__check::after { opacity: 1; }
.tile input:focus-visible + .tile__body { outline: 2px solid var(--brick); outline-offset: 2px; }
.is-invalid .tile__body { border-color: var(--brick); }

/* Schritt 2: Anzahl je gewähltem Element */
.mengen { display: grid; gap: 8px; }
.mengen:empty::before { content: "Bitte wählen Sie in Schritt 1 mindestens ein Element."; font-size: 14px; color: var(--ink-3); }
.menge { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #faf9f6; }
.menge__ico { display: flex; align-items: center; justify-content: center; height: 44px; color: var(--navy); }
.menge__ico svg { height: 44px; width: auto; max-width: 52px; margin: 0; }
.menge__name { font: 500 17px/1.25 var(--serif); color: var(--navy); }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); }
.stepper__btn { width: 44px; min-height: 44px; border: 0; background: none; cursor: pointer; font: 400 22px/1 var(--sans); color: var(--navy); }
.stepper__btn:hover { background: var(--paper); }
.stepper__btn:focus-visible { outline: 2px solid var(--brick); outline-offset: -2px; }
.stepper input { width: 52px; min-height: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 600 17px/1 var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; -moz-appearance: textfield; background: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(20,40,74,.2); }

@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile .tile__body { padding: 18px 10px 14px; }
  .tile__dwg { height: 56px; margin-bottom: 12px; }
  .tile strong { font-size: 16px; }
  .menge { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .menge__ico svg { height: 36px; max-width: 40px; }
  .menge__name { font-size: 15.5px; }
}

/* Schritt 3: Maße je Element (optional, aufteilbar) */
.masse { margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.masse .hint { margin-top: 8px; }
.mass-group { padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #faf9f6; }
.mass-group + .mass-group { margin-top: 10px; }
.mass-group__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mass-group__ico { display: flex; width: 34px; justify-content: center; color: var(--navy); }
.mass-group__ico svg { height: 30px; width: auto; max-width: 34px; margin: 0; }
.mass-group__head strong { font: 500 16.5px/1.2 var(--serif); color: var(--navy); }
.mass-group__total { margin-left: auto; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mass-row { display: grid; grid-template-columns: 64px 14px minmax(0, 1fr) 14px minmax(0, 1fr) 30px 36px; align-items: center; gap: 6px; max-width: 560px; }
.mass-row + .mass-row { margin-top: 8px; }
.mass-row input { width: 100%; min-height: 44px; padding: 8px 10px; font: 500 16px/1.2 var(--sans); color: var(--ink); text-align: center; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.mass-row input::-webkit-outer-spin-button, .mass-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mass-row input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,40,74,.12); }
.mass-row input[readonly] { background: var(--paper); color: var(--ink-2); }
.mass-n input { font-weight: 600; color: var(--navy); }
.mass-x, .mass-mm { text-align: center; font-size: 14px; color: var(--ink-3); }
.mass-rm { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink-3); font-size: 20px; line-height: 1; cursor: pointer; }
.mass-rm:hover { border-color: var(--brick); color: var(--brick); }
.mass-add { margin-top: 10px; padding: 0; background: none; border: 0; cursor: pointer; font: 500 14.5px/1.4 var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.mass-add:hover { color: var(--brick); text-decoration-color: currentColor; }
@media (max-width: 640px) {
  .mass-group { padding: 10px 10px 12px; }
  .mass-row { grid-template-columns: 46px 9px minmax(0, 1fr) 9px minmax(0, 1fr) 24px 32px; gap: 4px; }
  .mass-row input { padding: 8px 2px; font-size: 16px; }
  .mass-rm { width: 32px; height: 32px; }
  .mass-mm { font-size: 12.5px; }
}
