/* Holz Adrian 2027 – Treppenkonfigurator (Seitenvorlage templates/treppenkonfigurator.php).
   Aus dem Entwurf übernommen (style.css: Knöpfe, Abschnittskopf; zuschnitt.css: Formular, Zeichenbrett, Zettel; tisch.css: Schritte, Karten; treppe.css),
   mit werkzeuge/wp-test/css-scope.mjs auf .ha27-tp beschränkt. Am Ende: Absenden-Rückmeldung und Druck für den WordPress-Aufbau. */

.ha27-tp .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.ha27-tp .h2 { font-weight: 900; font-stretch: 75%; text-transform: uppercase; line-height: .9; font-size: clamp(2.5rem, 1.2rem + 5vw, 6rem); letter-spacing: -.005em; }
.ha27-tp .lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); line-height: 1.5; max-width: 38rem; opacity: .85; font-stretch: 100%; }

/* Buttons */
.ha27-tp .btn {
  position: relative; display: inline-flex; align-items: center; gap: .7rem;
  height: 58px; padding: 0 2.2rem 0 1.6rem; border: 0; cursor: pointer; white-space: nowrap;
  font-weight: 800; font-stretch: 85%; font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--spray); color: var(--forest);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  transition: background .25s, transform .25s var(--ease);
}
.ha27-tp .btn svg { width: 18px; height: 18px; }
.ha27-tp .btn:hover { background: var(--spray-2); transform: translateX(4px); }
.ha27-tp .btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px var(--line); clip-path: none; padding-right: 1.6rem; }
.ha27-tp .btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor; background: transparent; }
.ha27-tp .section { padding-block: clamp(5rem, 11vw, 10rem); position: relative; }
.ha27-tp .section--tight { padding-block: clamp(4rem, 8vw, 7rem); }
.ha27-tp .section--saw { background: var(--sawdust); color: var(--ink); }
.ha27-tp .section--saw .lead { opacity: .75; }
.ha27-tp .section--saw .spray, .ha27-tp .section--saw .stamp--spray { color: var(--spray-dark); }
.ha27-tp .section--saw .btn--ghost { box-shadow: inset 0 0 0 2px var(--line-d); }
.ha27-tp .section--saw .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.ha27-tp .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.ha27-tp .sec-head .tag { display: block; margin-bottom: 1rem; }
.ha27-tp .sec-head .tag, .ha27-tp .eyebrow { color: var(--pine); }
.ha27-tp .section--saw .sec-head .tag, .ha27-tp .section--saw .eyebrow { color: var(--walnut); }
@media (max-width: 860px) { .ha27-tp .sec-head { grid-template-columns: 1fr; } }
/* Holz Adrian – Zuschnitt & Holzliste (Abschnitt 04)
   Eingabe links, Werkstattzeichnung rechts, darunter der Zettel.
   Nutzt Farben und Bausteine aus style.css (.btn, .ruler, .linkbtn, .tag, .sec-head). */

.ha27-tp .zs { background: var(--forest-2); }   /* dunkel wie vorher die Schnellbestellung: so kleben „Neu im Shop" und Zuschnitt nicht aneinander */
.ha27-tp .zs [hidden] { display: none !important; }
.ha27-tp .zs .sec-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ha27-tp .zs__form :focus-visible, .ha27-tp .zettel :focus-visible { outline-color: var(--spray-dark); }   /* Kupfer reicht auf den hellen Karten nicht als Fokusring */

/* ---------- Umschalter: Konstruktionsholz / Platten ---------- */
.ha27-tp .zs-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.ha27-tp .zs-mode button {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: center; text-align: left;
  padding: .95rem 1.25rem; border: 2px solid var(--line); border-radius: 8px; background: transparent; color: var(--sawdust); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.ha27-tp .zs-mode svg { grid-row: 1 / span 2; width: 40px; height: 40px; }
.ha27-tp .zs-mode b { font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem); line-height: 1; }
.ha27-tp .zs-mode small { font-family: var(--mono); font-size: 13px; opacity: .7; margin-top: .3rem; }
.ha27-tp .zs-mode button:hover { border-color: var(--sawdust); }
.ha27-tp .zs-mode button[aria-pressed="true"] { background: var(--sawdust); border-color: var(--sawdust); color: var(--forest); }

/* ---------- Raster ---------- */
.ha27-tp .zs__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(.75rem, 1.6vw, 1.25rem); align-items: start; }

/* ---------- Eingabe ---------- */
.ha27-tp .zs__form { display: grid; gap: 1.1rem; background: var(--card); color: var(--ink); border-radius: 8px; padding: clamp(1.25rem, 2.4vw, 2rem);
  box-shadow: 0 1px 0 rgba(10,35,25,.08), 0 24px 40px -30px rgba(10,35,25,.5); }
.ha27-tp .zs__formtag { opacity: .66; }
.ha27-tp .zs-pane { display: grid; gap: 1.1rem; }
.ha27-tp .zs-field { display: grid; gap: .45rem; min-width: 0; align-content: start; }
.ha27-tp .zs-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .66; }
.ha27-tp legend.zs-label { padding: 0; margin-bottom: .45rem; }
.ha27-tp .zs-opt { text-transform: none; letter-spacing: 0; }
.ha27-tp .zs-sub { font-family: var(--mono); font-size: 13px; line-height: 1.45; opacity: .66; }
.ha27-tp .zs-sub a { text-decoration: underline; text-underline-offset: 3px; }
.ha27-tp .zs-sub a:hover { color: var(--spray-dark); }
.ha27-tp .zs-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.ha27-tp .zs-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ha27-tp .zs input[type="text"], .ha27-tp .zs input[type="email"], .ha27-tp .zs select, .ha27-tp .zs textarea {
  width: 100%; min-width: 0; height: 46px; border: 2px solid var(--line-d); background: #fff; color: var(--ink);
  padding: 0 .8rem; border-radius: 0; font-family: var(--mono); font-size: 14px; transition: border-color .2s;}
.ha27-tp .zs textarea { height: auto; padding: .7rem .8rem; resize: vertical; line-height: 1.45; }
.ha27-tp .zs select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%230a2319' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.ha27-tp .zs input:focus, .ha27-tp .zs select:focus, .ha27-tp .zs textarea:focus { outline: none; border-color: var(--ink); }
.ha27-tp .zs input::placeholder, .ha27-tp .zs textarea::placeholder { color: rgba(10,35,25,.45); }

/* Chips */
.ha27-tp .zs-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.ha27-tp .zs-chips button {
  min-height: 40px; padding: .4rem .75rem; border: 1.5px solid var(--line-d); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--mono); font-size: 13px; transition: border-color .2s, background .2s, color .2s;}
@media (max-width: 960px), (pointer: coarse) { .ha27-tp .zs-chips button { min-height: 44px; } }   /* Tippflächen ab 44 px am Handy und Tablet */
.ha27-tp .zs-chips button:hover:not(:disabled) { border-color: var(--ink); }
.ha27-tp .zs-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sawdust); }
.ha27-tp .zs-chips button:disabled { cursor: default; }

/* Kanten: dieselben vier Seiten wie in der Zeichnung, Kupfer = angeleimt */
.ha27-tp .zs-edges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
.ha27-tp .zs-edges button {
  display: grid; justify-items: center; gap: .1rem; padding: .5rem .15rem; border: 1.5px solid var(--line-d); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer;
  font: 700 13px/1.2 var(--mono); transition: border-color .2s, background .2s, color .2s;}
.ha27-tp .zs-edges small { font: 400 13px/1.2 var(--mono); opacity: .7; }
.ha27-tp .zs-edges button:hover { border-color: var(--ink); }
.ha27-tp .zs-edges button[aria-pressed="true"] { background: var(--spray); border-color: var(--spray); color: var(--forest); }
.ha27-tp .zs-edgeopts { display: grid; gap: .5rem; margin-top: .6rem; transition: opacity .25s; }
.ha27-tp .zs-edgeopts.is-off { opacity: .5; }

/* Bearbeitung: Kästchen */
.ha27-tp .zs-checks { display: grid; gap: .5rem; border: 0; margin: 0; padding: 0; }
.ha27-tp .zs-check { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .85rem; border: 1.5px solid var(--line-d); border-radius: 4px; cursor: pointer; transition: border-color .2s; }
.ha27-tp .zs-check:hover { border-color: var(--ink); }
.ha27-tp .zs-check input {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center; width: 20px; height: 20px; margin: 2px 0 0;
  border: 2px solid var(--ink); background: #fff; cursor: pointer; transition: background .15s;
}
.ha27-tp .zs-check input::before { content: ""; width: 10px; height: 6px; border: solid var(--sawdust); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease); }
.ha27-tp .zs-check input:checked { background: var(--ink); }
.ha27-tp .zs-check input:checked::before { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.ha27-tp .zs-check b { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.ha27-tp .zs-check small { display: block; margin-top: .1rem; font-family: var(--mono); font-size: 13px; opacity: .7; }

/* Übergabe: Auswahl */
.ha27-tp .zs-radios { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.ha27-tp .zs-radio { position: relative; }
.ha27-tp .zs-radio input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ha27-tp .zs-radio span { display: block; padding: .55rem .95rem; border: 1.5px solid var(--line-d); border-radius: 4px; font: 13px var(--mono); transition: border-color .2s, background .2s, color .2s; }
.ha27-tp .zs-radio:hover span { border-color: var(--ink); }
.ha27-tp .zs-radio input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--sawdust); }
.ha27-tp .zs-radio input:focus-visible + span { outline: 2px solid var(--spray-dark); outline-offset: 3px; }

/* Excel-Liste einfügen */
.ha27-tp .zs-paste { display: grid; gap: .6rem; justify-items: start; }
.ha27-tp .zs-paste > div { display: grid; gap: .6rem; justify-items: start; width: 100%; }
.ha27-tp #zs-paste { border-style: dashed; }

/* Fuß: Knöpfe + Meldung */
.ha27-tp .zs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .25rem; }
.ha27-tp .zs .btn--ghost { box-shadow: inset 0 0 0 2px var(--line-d); }
.ha27-tp .zs .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.ha27-tp .zs-msg { min-height: 1.4em; font-family: var(--mono); font-size: 13px; line-height: 1.5; opacity: .78; }
.ha27-tp .zs-msg.is-err { color: var(--warn); font-weight: 700; opacity: 1; }
.ha27-tp .zs-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1.5px solid var(--line-d); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
  font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: border-color .2s, background .2s, color .2s;
}
.ha27-tp .zs-pill:hover { border-color: var(--ink); }
.ha27-tp .zs-pill[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--sawdust); }

/* ---------- Werkstattzeichnung ---------- */
.ha27-tp .zs__draw {
  position: sticky; top: calc(var(--ha27-ab) + var(--ha27-stick) + 16px); margin: 0; padding: clamp(1rem, 2vw, 1.5rem); border-radius: 8px; color: var(--sawdust);
  background-color: var(--forest);
  background-image: linear-gradient(rgba(241,235,223,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(241,235,223,.055) 1px, transparent 1px);
  background-size: 24px 24px; box-shadow: inset 0 0 0 1px var(--line), 0 24px 40px -30px rgba(0,0,0,.6);
}
.ha27-tp .zs__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .5rem; }
.ha27-tp .zs__bar .tag { opacity: .7; }
.ha27-tp .zs__bar .zs__hint { color: var(--pine); opacity: .9; }
.ha27-tp .zs__draw svg { display: block; width: 100%; height: auto; overflow: visible; }
.ha27-tp #zs-cap { margin-top: .5rem; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--pine); }
.ha27-tp .zs-facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; font-family: var(--mono); font-size: 13px; }
.ha27-tp .zs-facts span { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: rgba(241,235,223,.8); }
.ha27-tp .zs-facts b { color: var(--pine); font-weight: 700; }
.ha27-tp .zs-facts .is-hot { border: 1px dashed var(--spray); color: var(--spray); }

.ha27-tp .zd-shadow { fill: rgba(0,0,0,.55); }
.ha27-tp .zd-fibre { fill: none; stroke: rgba(110,70,35,.35); stroke-width: .8; }
.ha27-tp .zd-fibre.is-rough { stroke: rgba(90,55,25,.5); stroke-width: 1; }
.ha27-tp .zd-ring { fill: none; stroke: rgba(110,70,35,.55); stroke-width: .9; }
.ha27-tp .zd-glue { fill: none; stroke: rgba(74,52,35,.7); stroke-width: 1.2; }
.ha27-tp .zd-pith { fill: rgba(74,52,35,.85); }
.ha27-tp .zd-outline { fill: none; stroke: rgba(10,35,25,.55); stroke-width: 1.2; stroke-linejoin: round; }
.ha27-tp .zd-cut { fill: none; stroke: var(--spray); stroke-width: 2.4; stroke-dasharray: 6 5; }
.ha27-tp .zd-dim path { fill: none; stroke: var(--rule); stroke-width: 1.4; }
.ha27-tp .zd-dim text { fill: var(--rule); font: 700 14px var(--mono); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: var(--forest); stroke-width: 9px; stroke-linejoin: round; }
.ha27-tp .zd-tick { fill: none; stroke: var(--rule); stroke-width: 1.2; opacity: .75; }
.ha27-tp .zd-note { fill: rgba(241,235,223,.72); font: 13px var(--mono); }
.ha27-tp .zd-note--on { fill: var(--spray); font-weight: 700; }
.ha27-tp .zd-arrow { fill: none; stroke: rgba(241,235,223,.72); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Platte: Material, Faser, Kanten */
.ha27-tp .zd-tex { fill: none; stroke: rgba(80,50,20,.28); stroke-width: .9; }
.ha27-tp #zsp circle { fill: rgba(90,60,30,.32); }
.ha27-tp .zd-groove { fill: none; stroke: rgba(10,35,25,.42); stroke-width: 2.4; stroke-linecap: round; }
.ha27-tp .zd-groove-hi { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 1.2; stroke-linecap: round; }
.ha27-tp .zd-strip { fill: rgba(90,55,25,.13); }
.ha27-tp .zd-strand { fill: rgba(120,80,35,.5); }
.ha27-tp .zd-layer { fill: none; stroke: rgba(74,52,35,.55); stroke-width: .9; }
.ha27-tp .zd-plateline { fill: none; stroke: rgba(0,0,0,.25); stroke-width: 1; }
.ha27-tp .zd-side { transition: fill .25s; }
.ha27-tp .zd-side.is-on { fill: var(--spray); }
.ha27-tp .zd-e { cursor: pointer; }
.ha27-tp .zd-edge { fill: none; stroke: transparent; stroke-width: 5; transition: stroke .2s; }
.ha27-tp .zd-hit { fill: none; stroke: transparent; stroke-width: 24; pointer-events: stroke; }
.ha27-tp .zd-e:hover .zd-edge { stroke: rgba(73,174,83,.5); }
.ha27-tp .zd-e.is-on .zd-edge { stroke: var(--spray); }
.ha27-tp .zd-elabel { fill: rgba(10,35,25,.7); font: 700 13px var(--mono); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; transition: fill .2s; }
.ha27-tp .zd-e.is-on .zd-elabel { fill: var(--spray-dark); }
.ha27-tp .zd-elabel.is-out { fill: rgba(241,235,223,.78); stroke: var(--forest); }
.ha27-tp .zd-e.is-on .zd-elabel.is-out { fill: var(--spray); }
.ha27-tp .zs__draw svg.is-dark .zd-elabel { fill: rgba(241,235,223,.8); }
.ha27-tp .zs__draw svg.is-dark .zd-e.is-on .zd-elabel { fill: var(--spray); }

/* ---------- Der Zettel ---------- */
.ha27-tp .zettel {
  position: relative; margin-top: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(2.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem);
  background-color: #fff; color: var(--ink); border-radius: 4px;
  background-image: radial-gradient(circle, var(--forest-2) 4.5px, transparent 5px), radial-gradient(circle, var(--forest-2) 4.5px, transparent 5px);
  background-size: 24px 24px, 24px 24px; background-repeat: repeat-y; background-position: left 2px top 6px, right 2px top 6px;
  box-shadow: 0 24px 40px -24px rgba(0,0,0,.6);
}
.ha27-tp .zettel::before {
  content: "Für die Werkstatt"; position: absolute; right: clamp(2.25rem, 4vw, 3.5rem); top: -14px; transform: rotate(3deg);
  background: var(--spray); color: var(--forest); padding: .35em .7em; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.ha27-tp .zettel__print { display: none; }
.ha27-tp .zettel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.ha27-tp .zettel__head .tag { display: block; margin-bottom: .4rem; opacity: .66; }
.ha27-tp .zettel__head h3 { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.8rem, 1rem + 2vw, 2.8rem); line-height: 1; }
.ha27-tp .zettel__head h3 small { margin-left: .6rem; font: 400 13px var(--mono); letter-spacing: .08em; opacity: .66; vertical-align: .7em; }
.ha27-tp .zettel__komm { display: grid; gap: .3rem; width: min(100%, 320px); }
.ha27-tp .zs .zettel__komm input { height: 40px; padding-left: 0; border-width: 0 0 2px; background: transparent; }

.ha27-tp .zl-scroll { overflow-x: auto; }
.ha27-tp .zl { width: 100%; border-collapse: collapse; font-size: 15px; }
.ha27-tp .zl th { padding: 0 .6rem .6rem; border-bottom: 2px solid var(--ink); font: 400 11px var(--mono); letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; opacity: .7; }
.ha27-tp .zl td { padding: .8rem .6rem; border-bottom: 1px solid var(--line-d); vertical-align: top; }
.ha27-tp .zl .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.ha27-tp .zl__pos { font: 13px var(--mono); opacity: .7; }
.ha27-tp .zl__name b { display: block; font-weight: 800; font-stretch: 90%; line-height: 1.25; }
.ha27-tp .zl__name small { display: block; margin-top: .15rem; font: 13px var(--mono); opacity: .7; }
.ha27-tp .zl__dim { font: 13.5px var(--mono); white-space: nowrap; }
.ha27-tp .zl__job { font: 13px/1.45 var(--mono); opacity: .82; }
.ha27-tp .zl__qty { font-weight: 700; }
.ha27-tp .zl__amt { font-size: 13px; }
.ha27-tp .zl__acts { white-space: nowrap; text-align: right; }
.ha27-tp .zl__acts button {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: .2rem; border: 1.5px solid var(--line-d); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.ha27-tp .zl__acts button:hover { border-color: var(--ink); background: var(--ink); color: var(--sawdust); }
.ha27-tp .zl__acts svg { width: 16px; height: 16px; }
.ha27-tp .zl__empty td { padding: 2.2rem 1rem; border-bottom: 0; text-align: center; font: 13.5px/1.6 var(--mono); }
.ha27-tp .zl__empty td > span { opacity: .7; }
@keyframes zlnew { from { background: rgba(73,174,83,.32); } }
.ha27-tp .zl tr.is-new td { animation: zlnew 1.6s var(--ease); }
.ha27-tp .zl tr.is-edit td { background: rgba(73,174,83,.1); }
.ha27-tp .zl tr.is-edit td:first-child { box-shadow: inset 3px 0 0 var(--spray); }

.ha27-tp .zl-sum { display: grid; gap: .5rem; margin-top: 1.25rem; }
.ha27-tp .zl-sum:empty { display: none; }
/* Zollstock-Leiste (Summe unter dem Zettel) – Grundform wie auf Kategorie- und Startseite, die hier nicht geladen sind */
.ha27-tp .ruler { display: flex; align-items: flex-end; padding: 13px .55rem .32rem; border-radius: 3px; font-family: var(--mono); font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ink);
  background-color: var(--rule);
  background-image: repeating-linear-gradient(90deg, rgba(10,35,25,.85) 0 1.5px, transparent 1.5px 30px), repeating-linear-gradient(90deg, rgba(10,35,25,.6) 0 1px, transparent 1px 6px);
  background-size: 100% 9px, 100% 5px; background-repeat: no-repeat; }
.ha27-tp .ruler span { flex: 1; }
.ha27-tp .ruler span + span { border-left: 1px solid rgba(10,35,25,.28); padding-left: .45rem; }
.ha27-tp .ruler i { font-style: normal; opacity: .75; margin-right: .3rem; }
.ha27-tp .zl-ruler span { white-space: normal; }
.ha27-tp .zl-msg { min-height: 1.4em; margin-top: .8rem; font: 13px/1.5 var(--mono); }
.ha27-tp .zettel__acts { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; margin-top: 1rem; padding-top: 1.25rem; border-top: 2px dashed var(--line-d); }
.ha27-tp .zettel__acts .linkbtn { margin-left: auto; }
.ha27-tp .zs-ask { display: grid; gap: 1rem; margin-top: 1.5rem; padding: clamp(1rem, 2.5vw, 1.5rem); background: var(--sawdust); border-radius: 4px; }
.ha27-tp .zs-ask > .zs-label { opacity: .8; }

/* ---------- Klein: Zeichnung nach oben, Zettel als Karten ---------- */
@media (max-width: 980px) {
  .ha27-tp .zs__grid { grid-template-columns: minmax(0, 1fr); }
  .ha27-tp .zs__draw { position: relative; top: auto; order: -1; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .ha27-tp .zl td { padding-inline: .4rem; }
  .ha27-tp .zl__dim { white-space: normal; }
  .ha27-tp .zl__acts button { width: 32px; height: 32px; margin-left: .1rem; }
}
@media (max-width: 900px) {
  .ha27-tp .zl thead { display: none; }
  .ha27-tp .zl, .ha27-tp .zl tbody { display: block; }
  .ha27-tp .zl tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pos name acts" "pos dim qty" "pos job amt"; gap: .15rem .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line-d); }
  .ha27-tp .zl td { display: block; padding: 0; border: 0; }
  .ha27-tp .zl tr.is-edit td { background: none; }
  .ha27-tp .zl tr.is-edit { background: rgba(73,174,83,.1); box-shadow: inset 3px 0 0 var(--spray); }
  .ha27-tp .zl__pos { grid-area: pos; }
  .ha27-tp .zl__name { grid-area: name; }
  .ha27-tp .zl__dim { grid-area: dim; white-space: normal; }
  .ha27-tp .zl__job { grid-area: job; }
  .ha27-tp .zl__qty { grid-area: qty; text-align: right; }
  .ha27-tp .zl__qty::after { content: " Stk"; font-weight: 400; }
  .ha27-tp .zl__qty.zl__qty--unit::after { content: none; }   /* Tisch-Stückliste nennt die Einheit schon in der Zelle */
  .ha27-tp .zl__amt { grid-area: amt; }
  .ha27-tp .zl__acts { grid-area: acts; }
  .ha27-tp .zl tr.zl__empty { display: block; }
  .ha27-tp .zettel__acts .linkbtn { margin-left: 0; }
}
@media (max-width: 640px) {
  .ha27-tp .zs-mode { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .ha27-tp .zs-mode small { display: none; }
  .ha27-tp .zs-mode button { padding: .7rem 1rem; column-gap: .8rem; }
  .ha27-tp .zs-mode svg { width: 30px; height: 30px; grid-row: auto; }
  .ha27-tp .zs-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha27-tp .zs-row--3 .zs-field:last-child { grid-column: 1 / -1; }
  .ha27-tp .zettel { padding-inline: 1.9rem; }
  .ha27-tp .zl-ruler { font-size: 13px; }
  .ha27-tp .zl-ruler span { white-space: nowrap; }
  .ha27-tp .zd-dim text { font-size: 24px; stroke-width: 12px; }
  .ha27-tp .zd-note, .ha27-tp .zd-elabel { font-size: 18px; }
}
/* Holz Adrian – Tischkonfigurator (tisch.html). Baut auf zuschnitt.css auf (.zs-*, .zettel, .zl-*) und ergänzt Karten, Schritte und Ansicht-Schalter. */

.ha27-tp .tk .sec-head .h2 { margin: 0; }
.ha27-tp .tk__form { gap: 1.4rem; }
.ha27-tp .tk-step { display: grid; gap: .9rem; margin: 0; padding: 0 0 1.4rem; border: 0; border-bottom: 2px dashed var(--line-d); min-width: 0; }
.ha27-tp .tk-step:last-of-type { border-bottom: 0; padding-bottom: 0; }
.ha27-tp .tk-step[hidden] { display: none; }
.ha27-tp .tk-step__h { display: flex; align-items: baseline; gap: .7rem; width: 100%; padding: 0; font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); line-height: 1; }
.ha27-tp .tk-step__h i { font: 700 13px var(--mono); font-style: normal; letter-spacing: .1em; color: var(--spray-dark); }
.ha27-tp .tk-grp { display: grid; gap: .5rem; margin-top: .3rem; }
.ha27-tp .tk-grp:first-child { margin-top: 0; }

/* Karten: Platten, Gestelle, Sitzmöbel */
.ha27-tp .tk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: .5rem; }
.ha27-tp .tk-card {
  display: grid; align-content: start; gap: .35rem; min-width: 0; padding: .5rem; text-align: left; border: 1.5px solid var(--line-d); border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.ha27-tp .tk-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.ha27-tp .tk-card[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sawdust); }
.ha27-tp .tk-card__ic { display: block; padding: .25rem; border-radius: 4px; background: #efe7d8; }
.ha27-tp .tk-card__ic svg { display: block; width: 100%; height: 56px; }
.ha27-tp .tk-card__ic--s svg { height: 64px; }
.ha27-tp .tk-card b { font-weight: 800; font-stretch: 88%; font-size: 14px; line-height: 1.2; }
.ha27-tp .tk-card small { font: 13px/1.4 var(--mono); opacity: .78; }
.ha27-tp .tk-card em { font-style: normal; font-weight: 700; color: var(--spray-dark); }
.ha27-tp .tk-card[aria-pressed="true"] em { color: var(--spray); }
.ha27-tp .tk-card.is-weak { opacity: .74; }
.ha27-tp .tk-card.is-weak[aria-pressed="true"] { opacity: 1; }

.ha27-tp .tk-dot { display: inline-block; width: 14px; height: 14px; margin-right: .4rem; vertical-align: -2px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.ha27-tp .tk-stgrp { margin-top: .25rem; }
.ha27-tp .tk-hints { display: grid; gap: .2rem; }
.ha27-tp .tk-hints:empty { display: none; }
.ha27-tp .tk-hints span::before { content: "· "; }

.ha27-tp .tk-stepper { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ha27-tp .tk-stepper button { width: 46px; height: 46px; border: 1.5px solid var(--line-d); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font: 700 22px/1 var(--mono); transition: border-color .2s, background .2s, color .2s; }
.ha27-tp .tk-stepper button:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--sawdust); }
.ha27-tp .tk-stepper button:disabled { opacity: .35; cursor: default; }
.ha27-tp .zs .tk-stepper input { width: 64px; text-align: center; font-weight: 700; }

/* Zeichnung: Ansichtswahl */
.ha27-tp .tk-views { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.ha27-tp .tk-views button { min-height: 32px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: rgba(241,235,223,.8); cursor: pointer; font: 700 13px var(--mono); letter-spacing: .04em; transition: background .2s, color .2s, border-color .2s; }
.ha27-tp .tk-views button:hover { border-color: var(--sawdust); }
.ha27-tp .tk-views button[aria-pressed="true"] { background: var(--sawdust); border-color: var(--sawdust); color: var(--forest); }
.ha27-tp .tk__draw svg { min-height: 220px; }
.ha27-tp .tk__draw .zd-dim text { font-size: 15px; }

/* Zettel */
.ha27-tp .tk-zl .zl__job { max-width: 34ch; }
.ha27-tp .tk-offen { font: 13px var(--mono); opacity: .7; white-space: normal; }
.ha27-tp .tk-sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; font: 13px/1.5 var(--mono); }
.ha27-tp .tk-sum .lockline { color: var(--spray-dark); }
.ha27-tp .tk-fuss { margin-top: 1rem; max-width: 80ch; }
/* Tische im Shop: Art.-Nr. mit Lief.-Nr. darunter, Preis je Zeile (angemeldet), Summe und Lieferzeit */
.ha27-tp .tk-art small { display: block; font-size: 13px; opacity: .65; }
.ha27-tp .tk-preis { font: 700 13.5px var(--mono); white-space: nowrap; }
.ha27-tp .tk-summe b { font-size: 15px; }
.ha27-tp .tk-lz { flex-basis: 100%; opacity: .75; }
@media (max-width: 900px) { .ha27-tp .tk-zl .tk-preis { grid-area: amt; text-align: right; } }

@media (max-width: 560px) {
  .ha27-tp .tk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha27-tp .tk-views button { font-size: 13px; padding: 0 .6rem; }
}

/* Originalbilder aus dem Lieferprogramm */
.ha27-tp .tk-card__ic .tk-foto { display: block; width: 100%; height: 56px; object-fit: cover; border-radius: 3px; }
.ha27-tp .tk-card__ic .tk-foto--frei { object-fit: contain; mix-blend-mode: multiply; }
.ha27-tp .tk-card__ic--s .tk-foto { height: 64px; }
.ha27-tp .tk-dot--img { background-size: cover; background-position: center; }
.ha27-tp .tk-fotos { display: grid; gap: .5rem; }
.ha27-tp .tk-fotos[hidden] { display: none; }
.ha27-tp .tk-fotos img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; }
.ha27-tp .tk-fotos__det { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.ha27-tp .tk-fotos__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.ha27-tp .tk-fotos figure { margin: 0; display: grid; gap: .25rem; }
.ha27-tp .tk-fotos figcaption { font: 13px/1.3 var(--mono); color: var(--pine); }
.ha27-tp .tk-fotos__tex { aspect-ratio: 1; object-fit: cover; }
.ha27-tp .tk-fotos__oel { aspect-ratio: 3 / 2; object-fit: cover; }

/* Tischkonfigurator: rechte Spalte klebt und scrollt für sich, wenn sie höher als der Bildschirm ist (Fotos) */
@media (min-width: 981px) {
  .ha27-tp .tk__draw { max-height: calc(100vh - var(--ha27-ab) - var(--ha27-stick) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(241,235,223,.35) transparent; }
}

/* Öl-Farbtöne als Kacheln mit Muster */
.ha27-tp .tk-oelwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: .5rem; }
.ha27-tp .tk-oelk { gap: .3rem; padding: .35rem; }
.ha27-tp .tk-oelk__m { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.ha27-tp .tk-oelk__m img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ha27-tp .tk-oelk b { font-size: 13px; }
@media (max-width: 420px) { .ha27-tp .tk-oelwahl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Meldung unter der Stückliste: Link „Zum Warenkorb“ */
.ha27-tp .tk .zl-msg a { color: var(--spray-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: .35rem 0; }
/* Holz Adrian – Treppenkonfigurator (treppe.html). Baut auf zuschnitt.css (.zs-*, .zettel, .zl-*) und tisch.css (.tk-*) auf. */

.ha27-tp .tp .sec-head .h2 { margin: 0; }
.ha27-tp .zs input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--ink); cursor: pointer; }

/* Auswahlknöpfe mit zweiter Zeile (Steigungen) */
.ha27-tp .zs-chips button.tp-chip { display: grid; justify-items: start; gap: .1rem; text-align: left; }
.ha27-tp .tp-chip b { font-size: 15px; font-weight: 800; }
.ha27-tp .tp-chip small { font: 13px/1.3 var(--mono); opacity: .75; }
.ha27-tp .zs-chips button.tp-chip.is-off, .ha27-tp .zs-chips button.tp-chip:disabled { opacity: .38; }
.ha27-tp .zs-chips button.tp-chip[aria-pressed="true"] small { opacity: .9; }

/* Karten: Laufformen und Modelle */
.ha27-tp .tp-ic svg { display: block; width: 100%; height: 58px; }
.ha27-tp .tp-ic--m { padding: 0; overflow: hidden; background: #efe7d8; }
.ha27-tp .tp-ic--m svg { height: 92px; }
.ha27-tp .tp-ic--m .tk-foto { display: block; width: 100%; height: 92px; object-fit: cover; }
.ha27-tp .tp-ic--m .tk-foto--s, .ha27-tp .tp-ic--m .tp-foto--s { object-fit: contain; mix-blend-mode: multiply; padding: .2rem; background: transparent; }
.ha27-tp .tp-modelle { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.ha27-tp .tp-sub { margin: .6rem 0 0; }
.ha27-tp .tp-modelinfo { margin-top: .25rem; padding: .7rem .95rem; border-left: 3px solid var(--spray-dark); background: rgba(10,35,25,.045); border-radius: 0 4px 4px 0; }
.ha27-tp .tp-modelinfo b { display: block; font-weight: 800; font-stretch: 90%; }
.ha27-tp .tp-modelinfo p { margin: .2rem 0 0; font-size: 14px; }
.ha27-tp .tp-modelinfo ul { margin: .4rem 0 0; padding-left: 1.1rem; font: 13px/1.5 var(--mono); }
.ha27-tp .tp-dot--an { background: repeating-linear-gradient(45deg, #d8cdb9 0 3px, #f4efe4 3px 6px); }

/* Passt die Treppe? */
.ha27-tp .tp-passt { border: 1.5px dashed var(--line-d); border-radius: 4px; padding: 0 .9rem; }
.ha27-tp .tp-passt summary { padding: .75rem 0; cursor: pointer; font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ha27-tp .tp-passt[open] summary { border-bottom: 1px dashed var(--line-d); margin-bottom: .8rem; }
.ha27-tp .tp-passt .zs-field { padding-bottom: .9rem; }
.ha27-tp .tp-passt__out { margin: 0; min-height: 1.4em; font: 700 13px/1.5 var(--mono); }
.ha27-tp .tp-passt__out.is-gut { color: #00603f; }
.ha27-tp .tp-passt__out.is-knapp { color: var(--spray-dark); }
.ha27-tp .tp-passt__out.is-schlecht { color: #a02a1f; }

/* Zeichnung */
.ha27-tp .tp-num { fill: rgba(10,35,25,.85); font: 700 13px var(--mono); text-anchor: middle; dominant-baseline: middle; }
.ha27-tp .tp-lab { fill: var(--rule); font-weight: 700; }
.ha27-tp .tp__draw svg { min-height: 240px; }
.ha27-tp .tp-fotos { gap: .75rem; }
.ha27-tp .tp-foto-gross { margin: 0; display: grid; gap: .25rem; }
.ha27-tp .tp-foto-gross img { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #fff; border-radius: 4px; }
.ha27-tp .tp-foto-gross figcaption { font: 13px/1.3 var(--mono); color: var(--pine); }
.ha27-tp .tp-gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .45rem; }
.ha27-tp .tp-gal img { display: block; width: 100%; height: 100px; object-fit: cover; border-radius: 4px; background: rgba(241,235,223,.08); }
.ha27-tp .tp-fotos .tp-sub { color: var(--pine); opacity: .9; }

/* Zettel */
.ha27-tp .tp-zl .zl__job { max-width: 46ch; }
.ha27-tp .tp-zl .zl__name small { text-transform: uppercase; letter-spacing: .06em; }
.ha27-tp #tp-zettelnote { margin: .5rem 0 1.1rem; }
.ha27-tp .zs-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sawdust); }
.ha27-tp .zl-msg.is-note { color: var(--spray-dark); }
.ha27-tp .tp-acts .btn--ghost { box-shadow: inset 0 0 0 2px var(--line-d); }

/* Anfrage: Angebot oder Termin beim Kunden */
.ha27-tp .tp-ask { scroll-margin-top: 4px; }   /* der Rest kommt aus html { scroll-padding-top } (style.css) */
.ha27-tp .tp-terminbox { display: grid; gap: .8rem; padding: 1rem; border: 1.5px dashed var(--spray-dark); border-radius: 4px; background: rgba(73,174,83,.07); }
.ha27-tp .zs input[type="date"] { width: 100%; min-width: 0; height: 46px; border: 2px solid var(--line-d); background: #fff; color: var(--ink); padding: 0 .6rem; border-radius: 0; font-family: var(--mono); font-size: 14px; }
.ha27-tp .zs input[type="date"]:focus { outline: none; border-color: var(--ink); }
.ha27-tp .tp-regeln { display: grid; gap: .5rem; margin-top: 1.5rem; max-width: 92ch; }

@media (max-width: 560px) {
  .ha27-tp .tp-modelle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha27-tp .tp-acts .btn { width: 100%; justify-content: center; }
}


/* Rückmeldung nach „Anfrage senden“ mit der Zusammenfassung der Konfiguration (Zeilenumbrüche bleiben) */
.ha27-tp #tp-askmsg { white-space: pre-line; }

/* ---------- WordPress: Rahmen, Absenden, Druck ---------- */
.ha27-tp { display: block; }
.ha27-tp h1, .ha27-tp h3 { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.ha27-tp .h2 { font-size: clamp(2.5rem, 1.2rem + 5vw, 6rem); }
.ha27-tp fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ha27-tp .zs-msg.is-ok { color: var(--green); font-weight: 700; opacity: 1; }
.ha27-tp .tp-falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* Feld für Spam-Roboter, Menschen sehen es nicht */
.ha27-tp .tp-ask button[type="submit"][disabled] { opacity: .55; cursor: progress; }
@media (max-width: 560px) { .ha27-tp .tp-ask .zs-row:not(.zs-row--3) { grid-template-columns: minmax(0, 1fr); } }
.ha27-tp .zettel.is-sent::after { content: "Anfrage gesendet"; position: absolute; right: clamp(2.5rem, 5vw, 4.5rem); bottom: 1.6rem; transform: rotate(-6deg);
  padding: .2em .6em; border: 3px solid var(--green); border-radius: 4px; background: rgba(255,255,255,.88); color: var(--green);
  font: 700 clamp(14px, 1.2vw + 11px, 22px) var(--mono); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
@media print {
  @page { margin: 12mm; }
  .ha27-topbar, .ha27-header, .ha27-catbar, .ha27-mega, .ha27-streifen, .ha27-footer, #wpadminbar, .ha27-skip { display: none !important; }
  .ha27-tp .sec-head, .ha27-tp .tk__form, .ha27-tp .tk__draw .zs__bar, .ha27-tp .zettel__acts, .ha27-tp .zl-msg, .ha27-tp .tp-ask, .ha27-tp .tp-passt { display: none !important; }
  .ha27-tp, .ha27-tp .tk, .ha27-tp .zettel { background: #fff !important; color: #000 !important; }
  .ha27-tp .section { padding: 0 !important; }
  .ha27-tp .tk__draw { position: static; background: #fff !important; box-shadow: none; color: #000; }
  .ha27-tp .zettel { margin: 0; box-shadow: none; background-image: none; padding: 0; }
  .ha27-tp .zettel::before { display: none; }
  .ha27-tp .zs__grid { display: block; }
  .ha27-tp .tp-regeln { margin-top: 1rem; }
}


/* Handy/Touch: Tippziele mindestens 44 px (Durchsicht 24.10.2026) */
@media (max-width: 860px), (pointer: coarse) {
  .ha27-tp .zs .tk-stepper input { min-height: 46px; }
  .ha27-tp .tk-views button { min-height: 44px; }
}
