/* Zaunplaner (Neubau): Ergänzungen. Gerüst, Knöpfe, Karten, Auswahlfelder, Info-Blasen und Dialoge kommen aus
   terrassenplaner.css (Klassen .tp-*), damit beide Planer gleich aussehen. Hier steht nur, was der Zaunplaner zusätzlich braucht. */

.fz .tp-layout.is-single { grid-template-columns: minmax(0, 1fr); }
.fz .tp-field select { width: 100%; }
.fz-mount { display: flex; flex-direction: column; gap: 12px; }
.fz-mount.is-busy { opacity: .6; transition: opacity .15s; }

/* Zeichenfläche: die Höhe richtet sich nach der Ansicht, nur die 3D-Ansicht braucht eine feste Höhe. */
.fz .tp-canvas-wrap { height: auto; min-height: 0; }
.fz .tp-canvas-wrap.is-3d { height: min(62vh, 640px); min-height: 220px; } /* Fallback; die Höhe setzt editor.js passend zur Vorderansicht */
.fz-view { position: relative; overflow: auto; touch-action: pan-x pan-y; } /* kein Seiten-Zoom hier: zwei Finger zoomen die Zeichnung (editor.js) */
.fz-scalebox { position: relative; overflow: hidden; flex: none; }

/* Leisten stehen über der Zeichnung, nicht darauf; die Zeichnung bleibt beim Blättern in der Liste sichtbar. */
/* EINE Zeile, immer: links die Werkzeuge für das markierte Element, rechts fest Zoom, Ansicht und Hilfe. Nichts wandert, nichts bricht um. */
.fz .tp-canvas-bar { position: static; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.fz .tp-toolbar { flex: 0 1 auto; min-width: 0; gap: 3px; flex-wrap: nowrap; }
.fz .tp-toolbar .tp-icon-btn { flex: 1 1 0; min-width: 30px; max-width: 40px; }
.fz .tp-viewbar { flex: none; margin-left: auto; align-items: center; flex-wrap: nowrap; gap: 4px; }
.fz .tp-seg button, .fz .tp-viewbar .tp-btn-link { padding-left: 8px; padding-right: 8px; font-size: .85rem; white-space: nowrap; }
.fz .tp-toolbar .tp-icon-btn { width: auto; }
.fz .tp-stage { z-index: 5; background: #fff; padding-bottom: 4px; }
.fz .tp-stage[hidden] { display: none; }
/* Festhalten nur, wenn das Fenster hoch genug ist; sonst nähme die Zeichnung zu viel vom Bildschirm. */
@media (min-height: 700px) {
	.fz .tp-stage { position: sticky; top: 8px; }
}
@media (max-width: 960px) {
	/* Auf dem Handy scrollt die Leiste weg, Zeichnung und Summe bleiben stehen (negativer Abstand = Höhe der Leiste). */
	.fz .tp-stage { top: calc(-1 * var(--fz-bar-h, 0px)); padding-top: 0; box-shadow: 0 6px 10px -8px rgba(0, 0, 0, .35); }
	.fz .tp-seg button, .fz .tp-viewbar .tp-btn-link { padding-left: 10px; padding-right: 10px; font-size: .85rem; }
	.fz .tp-viewbar { gap: 4px; }
	.fz .tp-icon-btn { width: 40px; height: 40px; }
	.fz .tp-schematic, .fz-totalbar .fz-delivery { display: none; }
	.fz-totalbar { margin-top: 6px; padding: 6px 10px; }
	.fz .tp-canvas-bar { margin-bottom: 4px; }
	/* In der Zusammenfassung braucht man die Zeichnung nicht mehr festgehalten: sie nähme 40 % des Handy-Bildschirms vom Lesen weg. */
	.fz[data-step="4"] .tp-stage { position: static; box-shadow: none; }
}
@media (pointer: coarse) {
	/* Bedienflächen mindestens 40 px */
	.fz .tp-bom input[type="number"], .fz-seq .tp-field--inline input, .fz .tp-field select, .fz-linkfield { min-height: 44px; }
	.fz .tp-bom .tp-icon-btn, .fz-seq .tp-icon-btn { width: 40px; height: 40px; }
	.fz-postselect { min-height: 36px; }
	/* Die kleinen Info-Knöpfe (20 px) bekommen eine größere Trefferfläche, ohne dass sich das Bild ändert. */
	.fz .tp-i-btn { position: relative; }
	.fz .tp-i-btn::after { content: ""; position: absolute; inset: -12px; }
}
.fz-empty { margin: 0 16px; padding: 10px 16px; text-align: center; color: #3d474d; background: rgba(255, 255, 255, .88); border-radius: 8px; }
.fz-3d-canvas { display: block; width: 100%; height: 100%; cursor: grab; }

/* Die Knöpfe über den Ecken liegen über der 3D-Fläche (`.tp-view3d` steht bereits absolut); ihre Stelle rechnet die
   3D-Ansicht nach jedem Bild aus. */
.fz-3d-marks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
button.fz-3d-mark {
	position: absolute; transform: translate(-50%, -100%); pointer-events: auto; display: inline-flex; align-items: center; gap: 4px;
	min-height: 28px; padding: 0 10px; border: 0; border-radius: 14px; background: var(--tp-accent); color: #fff;
	font-family: inherit; font-size: 12px; font-weight: 600; line-height: 28px; white-space: nowrap; cursor: pointer;
	box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}
button.fz-3d-mark:hover { box-shadow: 0 2px 9px rgba(0, 0, 0, .45); }
button.fz-3d-mark:focus-visible { outline: 3px solid #9ec5d3; outline-offset: 2px; }
.fz-3d-mark-icon { font-size: 13px; line-height: 1; }
@media (pointer: coarse) {
	button.fz-3d-mark { min-height: 36px; padding: 0 14px; line-height: 36px; }
}

.fz-totalbar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 10px 0 0; padding: 10px 12px; background: var(--tp-soft); border-radius: 8px; font-size: .92rem; }
.fz-totalbar { flex-wrap: wrap; }
.fz-totalbar .fz-delivery { flex: 1 1 100%; font-size: .85rem; color: #4a555c; }
.fz-totalbar:empty { display: none; }
.fz-totalbar strong { font-size: 1.15rem; }

/* Auswahlkacheln (Zaunsysteme, Elemente): dieselben Kacheln wie im Auswahlfenster der Dielen */
.fz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.fz-tiles--elements { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.fz .tp-pk-media { background: var(--tp-soft); }
.fz .tp-pk-media img { object-fit: contain; }
.fz-tiles--elements .tp-pk-media { aspect-ratio: 1 / 1; }
.fz-tiles--elements .tp-pk-title { font-size: .74rem; line-height: 1.2; overflow-wrap: anywhere; }
.fz-tiles--elements .tp-pk-meta { font-size: .7rem; }

/* Gewählter Zaun (Schritte 2 bis 4) */
.fz-chosen { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--tp-border); border-radius: 8px; background: var(--tp-soft); }
.fz-chosen-img { flex: none; width: 56px; height: 42px; object-fit: contain; border-radius: 4px; background: #fff; }
.fz-chosen-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.fz-chosen-label { font-size: .72rem; color: #5a666d; text-transform: uppercase; letter-spacing: .03em; }
.fz-chosen-color { font-size: .85rem; color: #3d474d; }
.fz-chosen .tp-btn-link { flex: none; }
/* So breit, dass Höhe und Breite je in eine Zeile passen: in der schmalen Spalte neben der Zeichnung sind das zwei Kacheln je Reihe. */
.fz-tiles--elements { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.fz-tiles--elements .tp-pk-title { font-size: .85rem; font-weight: 700; }
.fz-tiles--elements .tp-pk-media { position: relative; }
.fz-plus { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--tp-accent); color: #fff; font-weight: 700; line-height: 22px; text-align: center; opacity: .85; }
.fz-tiles--elements .tp-pk-tile:hover .fz-plus, .fz-tiles--elements .tp-pk-tile:focus-visible .fz-plus { opacity: 1; transform: scale(1.1); }
.fz-seq .fz-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--tp-soft); color: var(--tp-accent); font-size: .78rem; font-weight: 700; line-height: 22px; text-align: center; }
.fz-seq li.is-active .fz-num { background: var(--tp-accent); color: #fff; }
.fz-namemeta { color: #5a666d; font-size: .82rem; }

/* Schritt 1: Serien als größere Kacheln, Farbwahl im Fenster */
.fz-tiles--series { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.fz-tiles--series .tp-pk-tile, .fz-tiles--colors .tp-pk-tile { padding: 8px 8px 10px; }
.fz-tiles--series .tp-pk-media, .fz-tiles--colors .tp-pk-media { position: relative; }
.fz-tiles--series .tp-pk-title { font-size: 1.15rem; }
.fz-tiles--colors .tp-pk-title { font-size: 1.05rem; }
.fz-tiles--series .tp-pk-tile:hover, .fz-tiles--colors .tp-pk-tile:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.fz-tiles--colors { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
/* Weiß mit Akzentrahmen statt Akzentfläche: die Zaunbilder sind selbst grau-blau (Himmel, Anthrazit), darauf
   verschwand die gefüllte Pille. Der Schatten hebt sie auch von hellen Bildstellen ab. */
.fz-badge { position: absolute; top: 8px; left: 8px; padding: 3px 10px; border: 1px solid var(--tp-accent); border-radius: 999px; background: #fff; color: var(--tp-accent-dark); font-size: .86rem; font-weight: 600; line-height: 1.3; letter-spacing: .01em; box-shadow: 0 1px 4px rgba(0, 0, 0, .28); }
.fz-count { padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: 1rem; font-weight: 400; line-height: 1.5; }
.fz-mtab[aria-pressed="true"] .fz-count { background: rgba(255, 255, 255, .28); }
.fz-colorname { display: flex; align-items: center; gap: 8px; }
.fz-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); background: #ddd; }

/* Liste „Ihr Zaun“ */
.fz-seq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fz-seq li { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--tp-border); border-radius: 8px; background: #fff; }
.fz-seq li.is-active { border-color: var(--tp-accent); box-shadow: inset 0 0 0 1px var(--tp-accent); background: var(--tp-soft); }
.fz-fill { display: grid; gap: 10px; margin-top: 12px; }
.fz-fill .tp-btn-primary { justify-self: start; }
.fz-seq .fz-name { flex: 1 1 auto; min-width: 0; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-seq .tp-field--inline input { width: 72px; }
.fz-seq .tp-icon-btn { flex: none; width: 32px; height: 32px; box-shadow: none; }
.fz-seq .tp-icon-btn svg { width: 18px; height: 18px; }

.fz-fieldlist { display: grid; gap: 10px; }

/* Ecke: Richtung und Winkel unter der Pfostenwahl. Beides gilt nur für die 3D-Ansicht, darum zurückhaltend gesetzt. */
.fz-cornerrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -2px 0 2px; padding: 8px 10px; border-radius: 8px; background: var(--tp-soft); }
.fz-cornerrow-label { font-size: .8rem; font-weight: 600; flex: 1 1 100%; }
.fz-cornerrow .tp-chips { gap: 6px; margin: 0; }
.fz-cornerdeg { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; }
.fz-cornerdeg input { width: 4.5em; padding: 4px 6px; }
.fz-addrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.fz-addrow .tp-field { flex: 1 1 200px; }
.fz-linkfield { flex: 1 1 200px; min-width: 0; font: inherit; min-height: 36px; padding: 6px 10px; border: 1px solid var(--tp-border); border-radius: 6px; background: #fff; }
.fz-order { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; padding: 12px; background: var(--tp-soft); border-radius: 8px; }
/* Preis groß, die Nebenangaben klein darunter: je Zeile Bezeichnung links, Wert rechts */
.fz-ordersum { margin: 0 0 6px; font-size: .88rem; color: #4a555c; }
.fz-ordersum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; }
.fz-ordersum dt { flex: none; font-weight: 400; }
.fz-ordersum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.fz-ordersum > .fz-ordertotal { padding: 0 0 8px; margin-bottom: 5px; border-bottom: 1px solid var(--tp-border); color: inherit; font-size: 1rem; }
.fz-ordertotal dt { font-weight: 600; }
.fz-ordertotal dd { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.fz-ordertotal strong { font-size: 1.4rem; white-space: nowrap; }
.fz-ordertotal small { font-size: .8rem; color: #4a555c; }
.fz-bomdetails { margin: 8px 0; border: 1px solid var(--tp-border); border-radius: 8px; padding: 0 12px; }
.fz-bomdetails > summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; box-sizing: border-box; }
.fz-bomdetails[open] > summary { border-bottom: 1px solid var(--tp-border); margin-bottom: 8px; }
.fz-notices { margin-top: 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--tp-line, #d9dde1); font-size: .85rem; line-height: 1.45; }
.fz-notices p { margin: 6px 0 0; }
.fz-bomhint { color: #8a5a00; }
/* Stückliste als Liste: Name über die volle Breite, darunter Menge, Einzelpreis, Zeilensumme und Entfernen in einer Zeile.
   Das Mengenfeld ist das des Warenkorbs (.quantity-selector in css/style.css); hier steht nur, was der Planer dazu braucht. */
.fz-bomlist { margin-bottom: 4px; }
/* Gruppen als getönte Balken, jede Position als eigene helle Karte: so ist zu sehen, was zusammengehört. */
.fz-bomlist .fz-bomgroup { margin: 16px 0 0; padding: 6px 10px; font-size: 1rem; font-weight: 600; color: var(--tp-accent-dark, #345); background: #e4eef2; border-radius: 6px; }
.fz-bomlist .fz-bomgroup:first-child { margin-top: 4px; }
.fz-bomitem { margin-top: 8px; padding: 10px 12px; background: var(--tp-soft); border: 1px solid var(--tp-border); border-left: 3px solid var(--tp-accent); border-radius: 8px; }
.fz-bomitem.is-changed { background: var(--tp-warn-bg); border-color: var(--tp-warn-border); }
.fz-bomhead { display: flex; align-items: flex-start; gap: 8px; }
.fz-bomname { flex: 1; min-width: 0; font-weight: 600; line-height: 1.35; }
.fz-bomrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 4px; }
.fz-bomrow .quantity-selector { flex: none; box-shadow: none; }
.fz-bomrow .qty-btn:disabled { opacity: .4; cursor: default; }
.fz-bomunit { color: #666; white-space: nowrap; }
.fz-bomprice { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fz-bomhead .tp-icon-btn { flex: none; width: 30px; height: 30px; margin-top: -3px; box-shadow: none; }
.fz-bomhead .tp-icon-btn svg { width: 14px; height: 14px; }
.fz-bomitem small { display: block; margin-top: 2px; color: #666; font-size: .9rem; }
.fz-bomitem small.fz-bomhint { color: #8a5a00; }
.fz-bomitem .fz-bomcut { margin: 6px 0 2px; font-size: .8rem; white-space: normal; box-shadow: none; }
.fz-bomsum { margin: 12px 0; padding: 4px 0; background: #e4eef2; border-radius: 8px; }
.fz-bomsum > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px; }
.fz-bomsum dt { font-weight: 400; }
.fz-bomsum dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fz-bomsum > .fz-bomtotal:not(:first-child) { border-top: 1px solid #c3d5dc; }
.fz-bomsum > .fz-bomtotal dt, .fz-bomsum > .fz-bomtotal dd { font-weight: 700; }
.fz-addon-price { display: block; font-weight: 600; white-space: nowrap; }
.fz-removed { margin-top: 8px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }

/* Stückliste */
.fz .tp-bom input[type="number"] { width: 4.4rem; min-height: 34px; padding: 4px 8px; text-align: right; font: inherit; border: 1px solid var(--tp-border); border-radius: 6px; background: #fff; }
.fz .tp-bom td small { display: block; color: #666; }
.fz .tp-bom tr.fz-bomgroup th { padding: 12px 0 4px; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tp-accent-dark, #345); border-bottom: 1px solid var(--tp-border); }
.fz .tp-bom tr.is-changed td { background: rgba(255, 162, 31, .14); }
.fz .tp-bom .tp-icon-btn { width: 30px; height: 30px; box-shadow: none; }
.fz .tp-bom .tp-icon-btn svg { width: 16px; height: 16px; }
.fz .tp-notice { margin: 8px 0 0; font-size: .85rem; }

/* Breite am Element, Maßkette, Eckenmarke */
.fz-elwidth.is-edit { padding: 0; background: none; z-index: 8; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.fz-widthinput { font: inherit; font-size: 14px; width: 84px; min-height: 30px; padding: 2px 6px; text-align: center; border: 1px solid var(--tp-accent); border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
select.fz-widthinput { width: 96px; }
/* Maßkette unter dem Zaun, auf dunkler Erde: helle Linien mit dunklem Saum, damit sie sich abheben. */
.fz-dims { position: absolute; top: 502px; height: 60px; pointer-events: none; z-index: 5; } /* unter den Pfostenfüßen (reichen bis 492 px) */
.fz-dim { position: absolute; height: 16px; border-left: 2px solid #2f6478; border-right: 2px solid #2f6478; }
.fz-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 2px solid #2f6478; }
.fz-dim span { position: absolute; left: 50%; top: -3px; transform: translateX(-50%); white-space: nowrap; padding: 0 8px; border-radius: 10px; background: rgba(255, 255, 255, .95); border: 1px solid rgba(0, 0, 0, .25); font: 600 13px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #222; }
.fz-cornertag { position: absolute; left: 50%; top: -2px; transform: translate(-50%, -100%); z-index: 8; padding: 0 7px; border-radius: 10px; background: var(--tp-accent); color: #fff; font-size: 12px; line-height: 18px; white-space: nowrap; }

/* Ziehen und Ablegen */
.fz-tiles--elements .tp-pk-tile { user-select: none; -webkit-user-select: none; cursor: grab; }
.fz-tiles--elements .tp-pk-media img { pointer-events: none; -webkit-user-drag: none; }
body.fz-dragging, body.fz-dragging * { user-select: none; -webkit-user-select: none; cursor: grabbing !important; }
.fz-ghost { position: fixed; left: 0; top: 0; z-index: 100000; width: 96px; padding: 4px; background: #fff; border: 1px solid var(--tp-accent); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); opacity: .92; pointer-events: none; font-size: .72rem; text-align: center; line-height: 1.2; }
.fz-ghost img { display: block; width: 100%; height: 90px; object-fit: contain; background: var(--tp-soft); border-radius: 4px; margin-bottom: 2px; }
.fz-dropmark { position: absolute; top: 0; width: 4px; height: 400px; background: var(--tp-accent); border-radius: 2px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); z-index: 9; pointer-events: none; }
.tp-canvas-wrap.is-dropping { box-shadow: inset 0 0 0 3px var(--tp-accent); }
/* Finger: wischen scrollt die Zeichnung auch über Elementen; halten und ziehen verschiebt das Element (editor.js
   hält das Scrollen dann selbst an). Vorher stand hier pan-y: das sperrte das seitliche Scrollen, ohne dass das
   Ziehen verlässlich ging. */
.fz-elbox { touch-action: pan-x pan-y; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.fz-elbox.is-held { outline: 3px solid var(--tp-accent); outline-offset: -3px; }
.fz-elbox.is-dragging { opacity: .35; }
.fz-elbox:focus-visible { outline: 3px solid #9ec5d3; outline-offset: -3px; }

/* Ansicht in Originalgröße (Maße wie im Altplaner: Bilder 400 px hoch, 240 cm = 400 px) */
/* Szene wie die Vorschau der Planerkarte auf den Produktseiten (.mes-planer__vorschau): heller Garten, Grasnarbe, darunter Erdreich.
   Die Fußlinie der Elemente liegt bei 400 px; darunter (bis 565 px) sieht man die Pfostenfüße im Erdreich, darunter die Maßkette. */
.fz {
	--fz-szene:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='7'%3E%3Cpath d='M2 7C3 4.5 3 3 4 1M8.5 7C8.5 5 9.5 3 10.5 1.8M17 7C16 4.5 16 3 15 1.4M22 7C22 4.5 21 3.4 20 2.4' fill='none' stroke='%232e7d32' stroke-opacity='.34' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 393px / 26px 7px,
		linear-gradient(to bottom, #f6faf6 0, #f6faf6 400px, rgba(46, 125, 50, .30) 400px, rgba(46, 125, 50, .30) 401px, #f1ebe2 401px, #ece4d8 100%);
}
.fz-scale { transform-origin: 0 0; }
.fz-scene { position: relative; padding: 0 46px; box-sizing: border-box; }
/* Der Hintergrund liegt auf der ganzen Bühne, nicht nur auf dem Zaun: auch bei wenigen Elementen ist die Ansicht gefüllt. */
/* Ist die Bühne höher als die Szene (verkleinerte Ansicht), liegt die Szene unten; darüber Himmel in derselben Farbe. */
.fz-scale { background: var(--fz-szene); background-color: #f6faf6; background-repeat: repeat-x, no-repeat; }
.fz-view.is-empty { display: flex; align-items: center; justify-content: center; background: var(--fz-szene); }
.fz-fence { display: flex; align-items: flex-start; height: 400px; position: relative; }
.fz-elbox { position: relative; flex: none; height: 400px; cursor: pointer; }
.fz-elbox.is-active { outline: 3px solid var(--tp-accent); outline-offset: -3px; z-index: 7; }
.fz-elimg { position: absolute; top: 0; height: 400px; }
/* Anschlussleiste zwischen Feld und Pfosten; die Elemente stehen 8 px über dem unteren Bildrand. */
.fz-strip { position: absolute; bottom: 8px; z-index: 3; pointer-events: none; }
.fz-strip--left { left: 0; }
.fz-strip--right { right: 0; }
.fz-elfix, .fz-elmid { height: 400px; background-repeat: no-repeat; background-position: top center; box-sizing: border-box; }
.fz-elmid { background-repeat: repeat-x; background-clip: content-box; }
.fz-eledge { position: absolute; top: 0; height: 400px; background-repeat: no-repeat; }
.fz-elwidth { position: absolute; top: 410px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; padding: 1px 8px; background: rgba(255, 255, 255, .85); border-radius: 10px; color: #333; }
.fz-tile-dim { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-tile-dim strong { color: #222; font-weight: 600; }
/* Infokachel vor den Elementen einer Reihe (Detailbild und Erklärtext der Zeile): getönt, kein Greifen */
.fz-tiles--elements .tp-pk-tile.fz-infotile { background: #e4eef2; border-color: #c3d5dc; cursor: pointer; }
.fz-tiles--elements .tp-pk-tile.fz-infotile:hover { border-color: var(--tp-accent); }
.fz-infotile .tp-pk-media { background: #fff; }
/* Das Bild ganz zeigen, nicht auf die Fläche zuschneiden: von einem Symbol (Säge) bliebe sonst nur ein Ausschnitt. */
.fz-infotile .tp-pk-media img { object-fit: contain; padding: 6px; box-sizing: border-box; }
.fz-infotile-sign { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font: italic 700 3rem Georgia, 'Times New Roman', serif; color: var(--tp-accent); }
.fz-plus.fz-plus--info { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.fz-infotile .tp-pk-meta { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fz-rowinfo-fig { margin: 0 0 14px; }
.fz-rowinfo-fig .fz-detail-img { max-height: 360px; margin-bottom: 4px; }
.fz-rowinfo-fig.is-inline { float: left; width: 96px; margin: 2px 12px 6px 0; }
.fz-rowinfo-fig.is-inline .fz-detail-img { max-height: 96px; background: none; margin: 0; }
.fz-rowinfo::after { content: ""; display: block; clear: both; }
.fz-rowinfo-fig figcaption { text-align: center; font-size: .9rem; color: #5a666d; }
.fz-rowinfo-head { margin: 14px 0 6px; font-size: 1.05rem; }
.fz-rowinfo p { margin: 0 0 10px; }
/* Elemente mit wählbarer Breite: Marke oben links im Bild, die Spanne in der Akzentfarbe */
.fz-tilemarks { position: absolute; left: 4px; top: 4px; right: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.fz-cutbadge.fz-cutbadge--saw { background: var(--tp-warn-bg); border-color: var(--tp-warn-border); color: #7a4f00; }
.fz-cutbadge { display: inline-flex; max-width: 100%; align-items: center; gap: 4px; padding: 2px 7px 2px 5px; border-radius: 12px; background: #fff; border: 1px solid var(--tp-accent); color: var(--tp-accent-dark, #345f70); font-size: .7rem; font-weight: 600; line-height: 1.4; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.fz-cutbadge svg { flex: none; width: 15px; height: 15px; }
.fz-tile-dim--var strong { color: var(--tp-accent-dark, #345f70); }
/* „Breite ändern“ unter dem Maß eines Elements mit wählbarer Breite, im Aussehen der Marke in der Elementwahl.
   Der Knopf hängt am Maß und wächst beim Zoomen mit ihm. */
.fz-widthhint { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 1px 8px 1px 6px; border-radius: 12px; background: #fff; border: 1px solid var(--tp-accent); color: var(--tp-accent-dark, #345f70); font: inherit; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.fz-widthhint:hover { background: #e4eef2; }
.fz-widthhint:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 2px; }
.fz-widthhint svg { flex: none; width: 14px; height: 14px; }
.fz-widthhint.is-icon { padding: 2px 5px; }
/* Art des Elements (Tor, Doppeltor) vor der Breite; am markierten Element mit Breitenregler als eigenes Schildchen. */
.fz-eltype { margin-right: 6px; font-weight: 700; color: var(--tp-accent); }
.fz-elwidth.is-edit .fz-eltype { margin-right: 2px; padding: 1px 8px; background: rgba(255, 255, 255, .9); border-radius: 10px; }
.fz-postbox { position: relative; flex: none; height: 400px; margin: 0 1px; z-index: 6; }
.fz-ban { position: absolute; top: 0; bottom: 0; width: 16px; background: repeating-linear-gradient(135deg, rgba(198, 40, 40, .55) 0 6px, rgba(198, 40, 40, .15) 6px 12px); z-index: 6; pointer-events: none; }
/* Entfernen-Knopf oben rechts am Element; behält wie die Beschriftungen seine Größe, wenn die Zeichnung verkleinert ist. */
button.fz-elremove { display: none; position: absolute; top: 8px; right: 8px; z-index: 8; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; align-items: center; justify-content: center; background: #fff; color: #3d474d; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); cursor: pointer; transform-origin: 100% 0; transform: scale(min(1.8, calc(0.9 / var(--fz-s)))); }
button.fz-elremove svg { width: 16px; height: 16px; }
button.fz-elremove:hover, button.fz-elremove:focus-visible { background: #c62828; color: #fff; }
button.fz-elremove:focus-visible { outline: 3px solid #9ec5d3; outline-offset: 2px; }
.fz-elbox.is-active > button.fz-elremove, .fz-elbox:focus-within > button.fz-elremove { display: flex; }
@media (hover: hover) {
	.fz-elbox:hover > button.fz-elremove { display: flex; }
}
button.fz-banchip { padding: 0; border: 0; font-family: inherit; font-size: 1rem; cursor: pointer; pointer-events: auto; }
button.fz-banchip:hover { background: #a61e1e; }
button.fz-banchip:focus-visible { outline: 3px solid #9ec5d3; outline-offset: 2px; }
.fz-alert:focus { outline: none; }
.fz-alert.is-flash { animation: fz-flash 1.6s ease-out; }
@keyframes fz-flash { 0% { box-shadow: 0 0 0 4px rgba(198, 40, 40, .55); } 100% { box-shadow: 0 0 0 4px rgba(198, 40, 40, 0); } }
@media (prefers-reduced-motion: reduce) { .fz-alert.is-flash { animation: none; } }
.fz-banchip { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 7; width: 24px; height: 24px; border-radius: 50%; background: #c62828; color: #fff; font-weight: 700; line-height: 24px; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.fz-alert { display: flex; gap: 12px; margin: 12px 0; padding: 12px 14px; border: 1px solid #e3b4b4; border-left: 4px solid #c62828; border-radius: 8px; background: #fdf1f1; color: #5c1a1a; }
.fz-alert-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #c62828; color: #fff; font-weight: 700; line-height: 26px; text-align: center; }
.fz-alert-body strong { display: block; margin-bottom: 4px; }
.fz-alert-body p { margin: 0 0 6px; font-size: .9rem; }
.fz-alert-list { margin: 0 0 10px; padding-left: 18px; font-size: .88rem; }
.fz-ban--left { left: 0; }
.fz-ban--right { right: 0; }
.fz-elbox:has(.fz-ban) { box-shadow: inset 0 0 0 3px #c62828; }
/* Pfostenart und Zubehör: dieselben Kacheln wie die Elemente in Schritt 2 (zwei je Zeile in der schmalen Spalte).
   Lange Wörter trennt der Browser nach Silben statt mitten im Wort. */
.fz-tiles--groups { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
/* Die Bilder sind nur 80 px groß (so hochgeladen): in Originalgröße mittig zeigen statt unscharf aufziehen. */
.fz-tiles--groups .tp-pk-media { aspect-ratio: auto; height: 104px; display: flex; align-items: center; justify-content: center; }
.fz-tiles--groups .tp-pk-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.fz-tiles--groups .tp-pk-title { font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
.fz-tiles--elements .tp-pk-title { overflow-wrap: break-word; hyphens: auto; }
.fz-tiles--groups .tp-pk-tile[aria-checked="true"] { border-color: var(--tp-accent); box-shadow: inset 0 0 0 2px var(--tp-accent); background: var(--tp-soft); }
/* Befestigung: das „i“ mit dem Erklärtext steht rechts in der Wahlzeile */
.fz .tp-opts label > .tp-i { margin-left: auto; flex: none; }
.fz-addon { border: 1px solid var(--tp-border); border-radius: 8px; margin-top: 8px; padding: 0 12px; }
.fz-addon > summary { display: flex; align-items: center; gap: 10px; justify-content: space-between; min-height: 44px; cursor: pointer; list-style: none; }
.fz-addon > summary::-webkit-details-marker { display: none; }
.fz-addon > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid #6b7780; border-bottom: 2px solid #6b7780; transform: rotate(45deg); transition: transform .15s; }
.fz-addon[open] > summary::after { transform: rotate(-135deg); }
.fz-addon + :not(.fz-addon) { margin-top: 18px; }
.fz-addon-name { flex: 1; min-width: 0; font-weight: 600; font-size: .92rem; }
.fz-addon-pick { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--tp-accent); }
.fz-addon-pick.is-none { color: #6b7780; }
.fz-addon > .fz-tiles { padding-bottom: 12px; }
.fz-addon > .tp-help { margin: 0 0 8px; }
/* Klappkasten für Listen (Elemente, einzelne Pfosten): Abstand nach oben und unter dem Inhalt. */
.fz-addon--list { margin-top: 16px; }
.fz-addon--list > :last-child:not(summary) { margin-bottom: 12px; }
.fz-dialog { max-height: 86vh; overflow: auto; }
.fz-dialog--wide { width: min(94vw, 640px); }
.fz-detail-img { display: block; max-width: 100%; max-height: 260px; margin: 0 auto 12px; object-fit: contain; background: var(--tp-soft); border-radius: 6px; }
.fz-faq details { border-bottom: 1px solid var(--tp-border); padding: 8px 0; }
.fz-faq summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.fz-faq details p { margin: 8px 0 4px; }
.fz-tiles .tp-pk-tile.is-picked { border-color: var(--tp-accent); box-shadow: inset 0 0 0 2px var(--tp-accent); background: var(--tp-soft); }
.fz-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 64px; color: #8a959c; font-size: .72rem; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0, 0, 0, .03) 8px 16px); }
.fz-detail-body .fz-noimg, .fz-noimg.is-detail { min-height: 120px; }
.fz .fz-search { width: 100%; box-sizing: border-box; min-height: 44px; padding-left: 40px; }
.fz-searchbox { position: relative; display: block; margin-bottom: 4px; }
.fz-searchbox svg { position: absolute; left: 12px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: #5f6b73; pointer-events: none; }
.fz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fz-dialog textarea { width: 100%; font: inherit; padding: 6px 10px; border: 1px solid var(--tp-border); border-radius: 6px; box-sizing: border-box; }
.fz-dialog .tp-field input[type="email"] { width: 100%; box-sizing: border-box; }
.fz-overlay { position: absolute; inset: 0; pointer-events: none; }
.fz-pole { position: relative; }
.fz-postmark { position: absolute; left: 50%; top: 406px; transform: translateX(-50%); z-index: 8; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 11px; background: #fff; border: 2px solid #333; color: #222; font: 700 12px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; text-align: center; }
button.fz-postmark.is-link { cursor: pointer; border-color: var(--tp-accent); color: var(--tp-accent); }
.fz-postselect { position: absolute; left: 50%; top: 432px; transform: translateX(-50%); z-index: 9; width: 118px; font: inherit; font-size: 12px; min-height: 28px; padding: 2px 4px; border: 1px solid var(--tp-accent); border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.fz-fixing { position: absolute; bottom: 0; left: 0; z-index: 1; max-width: none; }
/* Beschriftungen in der Zeichnung behalten ihre lesbare Größe, auch wenn die Zeichnung verkleinert ist (--fz-s = Zoomfaktor).
   Steht am Dateiende, damit es die Grundregeln der Beschriftungen überstimmt. */
.fz-scale { --fz-s: 1; }
.fz-postmark, .fz-postselect, .fz-elwidth, .fz-dim span { transform-origin: 50% 0; transform: translateX(-50%) scale(min(1.8, calc(0.9 / var(--fz-s)))); }
.fz-cornertag { transform-origin: 50% 100%; transform: translate(-50%, -100%) scale(min(1.8, calc(0.9 / var(--fz-s)))); }
button.fz-cornerflip { border: 0; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
button.fz-cornerflip:hover { box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
button.fz-cornerflip:focus-visible { outline: 3px solid #9ec5d3; outline-offset: 1px; }
/* Wandanschluss: helles Mauerwerk in den Pastelltönen der Szene statt des alten roten Ziegelbilds; ein weicher Schatten zum Zaun hin,
   unten ein Betonsockel im Erdreich. */
.fz-wall {
	position: absolute; bottom: 0; width: 46px; height: 400px; z-index: 1; box-sizing: border-box;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='32'%3E%3Crect width='46' height='32' fill='%23f3eee6'/%3E%3Cg fill='%23e6d3c4'%3E%3Crect x='1' y='1' width='20' height='14' rx='1.5'/%3E%3Crect x='23' y='1' width='20' height='14' rx='1.5' fill='%23e0cab9'/%3E%3Crect x='0' y='17' width='9' height='14' rx='1.5' fill='%23e0cab9'/%3E%3Crect x='12' y='17' width='20' height='14' rx='1.5'/%3E%3Crect x='34' y='17' width='12' height='14' rx='1.5' fill='%23e0cab9'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 46px 32px,
		#e6d3c4;
	border-radius: 3px 3px 0 0;
	box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 0 0 1px rgba(120, 100, 85, .22);
}
.fz-wall::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(60, 45, 35, .10), rgba(60, 45, 35, 0) 40%, rgba(60, 45, 35, 0) 60%, rgba(60, 45, 35, .10)); }
.fz-wall::after { content: ""; position: absolute; left: -1px; right: -1px; top: 100%; height: 92px; background: linear-gradient(to bottom, #d9d3c8, #cfc8bb); border-radius: 0 0 3px 3px; box-shadow: 0 0 0 1px rgba(120, 100, 85, .18); }

/* Handy: Werkzeugleiste und Ansichtsleiste brauchen weniger Platz, damit die Zeichnung früher beginnt (alles in je einer Zeile). */
@media (max-width: 600px) {
	.fz .tp-toolbar { gap: 4px; flex-wrap: nowrap; }
	.fz .tp-toolbar .tp-icon-btn { flex: 1 1 0; min-width: 40px; max-width: 48px; }
	.fz .tp-viewbar { gap: 4px; flex-wrap: nowrap; }
	.fz .tp-seg button { padding-inline: 8px; font-size: .85rem; }
	.fz #fz-help-open { padding-inline: 6px; }
}

.fz-draft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 12px; background: var(--tp-soft); border: 1px solid var(--tp-border); border-radius: 8px; }
.fz-draft p { margin: 0; }
.fz-draft-actions { display: flex; gap: 8px; }

/* Zeichnung mit der Maus greifen und verschieben */
.fz-view { cursor: grab; }
.fz-view .fz-elbox, .fz-view .fz-postmark, .fz-view .fz-postselect { cursor: pointer; }
.fz-view.is-panning { cursor: grabbing; user-select: none; }
.fz-view.is-empty { cursor: default; }

.fz-listactions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }

/* Schmale Bildschirme: Bedienflächen mindestens 44 px (Berührung), ohne die Optik der Blasen und Kästchen aufzublähen. */
@media (max-width: 600px) {
	.fz .tp-chip { min-height: 44px; padding-inline: 14px; }
	.fz .tp-check { min-height: 44px; }
	.fz .tp-check input[type="checkbox"], .fz .tp-check input[type="radio"] { width: 22px; height: 22px; }
	.fz .tp-i-btn { position: relative; }
	.fz .tp-i-btn::after { content: ""; position: absolute; inset: -12px; }
}

@media (max-width: 600px) {
	.fz .tp-step label input[type="checkbox"], .fz .tp-step label input[type="radio"] { width: 22px; height: 22px; }
	.fz .tp-btn { min-height: 44px; }
	.fz .tp-bom input[type="number"] { min-height: 44px; }
	.fz .tp-bom .tp-icon-btn { width: 44px; height: 44px; }
}

@media (max-width: 600px) {
	.fz-seq .tp-icon-btn { width: 44px; height: 44px; }
	.fz-seq li { flex-wrap: wrap; row-gap: 4px; }
	.fz .tp-field--inline input { min-height: 44px; }
}
/* Auf dem Handy passen beide Gruppen nicht nebeneinander: Werkzeuge oben, Ansicht darunter (zwei feste Zeilen, in jedem Schritt gleich). */
@media (max-width: 600px) {
	.fz .tp-canvas-bar { flex-wrap: wrap; }
	.fz .tp-toolbar { flex: 1 1 100%; }
	.fz .tp-toolbar .tp-icon-btn { min-width: 40px; max-width: 48px; }
	.fz .tp-viewbar { margin-left: 0; width: 100%; justify-content: space-between; }
}
.fz-docs { margin-top: 8px; font-size: .9rem; }
.fz-docdetails .fz-docs:last-child, .fz-bomdetails > .tp-help:last-child { margin-bottom: 12px; }
.fz-bomdetails > .tp-sec { margin-top: 14px; }
.fz-docs ul { margin: 4px 0 0; padding-left: 1.2em; }

/* Reiter der Zeilengruppen in Schritt 2 und Links zu den Infoseiten */
/* Akkordeon: jede Gruppe eine Kopfzeile über die volle Breite, die Kacheln klappen direkt darunter auf. Es ist immer
   genau eine Gruppe offen. Alles sitzt in einem gemeinsamen Rahmen, damit Kopfzeilen und Kacheln als Einheit lesbar sind. */
/* Jede Gruppe ist ein eigener Kasten mit getönter Kopfzeile: als dünne Zeilen in einem gemeinsamen Rahmen wurden
   die zugeklappten Gruppen leicht übersehen. */
.fz-folds { margin: 10px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.fz-fold { border: 1px solid #c3d5dc; border-radius: 8px; overflow: hidden; background: #fff; }
.fz-fold-head { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 0; background: #e4eef2; font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.25; color: var(--tp-accent-dark, #345f70); text-align: left; cursor: pointer; }
.fz-fold-head:hover { background: #d6e5eb; }
.fz-fold-head:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: -2px; }
.fz-fold-head[aria-expanded="true"] { background: var(--tp-accent); color: #fff; cursor: default; }
.fz-fold-head[aria-expanded="true"] .fz-fold-count { background: rgba(255, 255, 255, .22); color: #fff; }
.fz-fold-head[aria-expanded="true"] .fz-fold-arrow { background: rgba(255, 255, 255, .22); color: #fff; }
.fz-fold-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fz-fold-count { flex: none; padding: 2px 10px; border-radius: 12px; background: #fff; font-size: .75rem; font-weight: 400; color: #3d474d; }
.fz-fold-arrow { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tp-accent); color: #fff; }
.fz-fold-arrow svg { width: 18px; height: 18px; }
.fz-fold-head[aria-expanded="true"] .fz-fold-arrow { transform: rotate(180deg); }
.fz-fold-body { padding: 12px 12px 0; }
.fz-fold-body > .tp-sec:last-child { margin-bottom: 12px; }
.fz-infolinks { margin: 14px 0 0; }

/* Schritt 1 läuft über die volle Breite, anders als die schmale Spalte der Schritte 2 bis 4: keine Schrift ist hier
   kleiner als der Fließtext. Die Material-Reiter hängen am Rahmen der Serien. */
.fz-pick-search { margin: 0 0 18px; }
.fz-pick-search .fz-searchbox { margin-bottom: 0; }
.fz-pick-search .fz-search { min-height: 52px; font-size: 1.1rem; border-radius: 8px; }
.fz-mtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.fz-mtab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; font: inherit; font-size: 1.1rem; font-weight: 600; color: #333; background: var(--tp-soft); border: 1px solid var(--tp-border); border-bottom: 0; border-radius: 8px 8px 0 0; cursor: pointer; }
.fz-mtab:hover { border-color: var(--tp-accent); color: var(--tp-accent-dark); }
.fz-mtab[aria-pressed="true"] { background: var(--tp-accent); border-color: var(--tp-accent); color: #fff; }
.fz-mtab:focus-visible { outline: 2px solid var(--tp-accent-dark); outline-offset: 2px; }
.fz-pick-panel { padding: 16px; border: 1px solid var(--tp-border); border-top: 3px solid var(--tp-accent); border-radius: 0 0 8px 8px; }
.fz-pick-panel.is-search { border-top: 1px solid var(--tp-border); border-radius: 8px; }
.fz-pick-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 4px; }
.fz .fz-pick-title { margin: 0; font-size: 1.2rem; font-weight: 600; }
.fz-pick-sub { font-size: 1rem; color: #5f6b73; }
#fz-colors .tp-btn, .fz-draft .tp-btn { font-size: 1rem; }
.fz-pick-hint, #fz-colors-text { margin: 0 0 14px; font-size: 1rem; color: #4a555c; }
.fz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.fz-tag { padding: 1px 10px; border: 1px solid var(--tp-border); border-radius: 999px; background: var(--tp-soft); font-size: 1rem; line-height: 1.5; color: #3d474d; }
.fz-tiles--series .tp-badge, .fz-tiles--colors .tp-badge { margin: 2px 0 0; padding: 1px 10px; font-size: 1rem; line-height: 1.5; }
.fz .tp-i-pop { font-size: 1rem; }
/* Passen die Reiter nicht in eine Zeile, werden sie zu Feldern, die ihre Zeilen ganz füllen: ein einzelner Reiter in
   der zweiten Zeile hinge sonst allein am Rahmen. Gemessen wird der Bereich, nicht das Fenster. */
.fz-pick { container-type: inline-size; }
@container (max-width: 860px) {
	.fz-mtabs { margin-bottom: 8px; }
	.fz-mtab { flex: 1 1 auto; justify-content: center; padding: 8px 14px; border-bottom: 1px solid var(--tp-border); border-radius: 8px; }
	.fz-mtab[aria-pressed="true"] { border-bottom-color: var(--tp-accent); }
	.fz-pick-panel { border-radius: 8px; }
}
@container (max-width: 520px) {
	.fz-pick-panel { padding: 10px; }
	.fz-tiles--series { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Schritte 2 bis 4 und die Fenster: Die Bausteine des Terrassenplaners bringen Schriften unter der Fließtextgröße mit.
   Hier gilt dieselbe Untergrenze wie in Schritt 1. Ausgenommen sind nur die Marken in der Zeichnung (Pfostenbuchstaben,
   Maße) und die Ziffern in den Kreisen: sie stehen an festen Plätzen und würden sich sonst überdecken. */
.fz .tp-btn, .fz .tp-help, .fz .tp-label, .fz .tp-field, .fz .tp-check, .fz .tp-stats, .fz .tp-bom, .fz .tp-order-note, .fz .tp-schematic, .fz .tp-notice,
.fz .tp-seg button, .fz .tp-viewbar .tp-btn-link,
.fz-dialog p, .fz-dialog .tp-btn, .fz-dialog .tp-field, .fz-dialog .tp-check, .fz-dialog .tp-help,
.fz-totalbar, .fz-totalbar .fz-delivery, .fz-notices, .fz-docs, .fz-removed,
.fz-fold-head, .fz-fold-count, .fz-chosen-color,
.fz-seq .fz-name, .fz-namemeta,
.fz-addon-name, .fz-addon-pick,
.fz-cornerrow-label, .fz-cornerdeg,
.fz-alert-body p, .fz-alert-list, .fz-faq summary { font-size: 1rem; }
.fz .tp-bom caption, .fz .tp-bom td small, .fz .tp-bom tr.fz-bomgroup th { font-size: 1rem; }
.fz .tp-bom tr.fz-bomgroup th { text-transform: none; letter-spacing: 0; }
.fz-chosen-label { font-size: 1rem; text-transform: none; letter-spacing: 0; }
.fz-tiles--elements .tp-pk-title, .fz-tiles--elements .tp-pk-meta,
.fz-tiles--groups .tp-pk-title, .fz-tiles--groups .tp-pk-meta { font-size: 1rem; line-height: 1.25; }

/* Handy: jeder Rahmen kostet Breite. Der Seitenrand des Shops reicht als Abstand; die Karte des Schritts und der
   Kasten der Serien verlieren Rahmen und Innenabstand, damit zwei Kacheln nebeneinander Platz haben. */
@media (max-width: 600px) {
	.tp.fz { padding-left: 0; padding-right: 0; }
	.fz .tp-step { padding: 12px 0 14px; border: 0; border-radius: 0; box-shadow: none; background: none; }
	.fz .fz-pick-panel { padding: 10px 0 0; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; }
	.fz .fz-pick-panel.is-search { border-top: 0; padding-top: 0; }
}

/* Handy, Leiste über der Zeichnung: Die Ansichtswahl steht vorn und bleibt beim Umschalten an ihrem Platz; daneben
   steht je nach Ansicht der Zoom oder die Darstellung. Der unsichtbare Zoom hielte in 3D sonst seinen Platz frei,
   und die übrigen Knöpfe würden abgeschnitten. */
@media (max-width: 600px) {
	.fz .tp-viewbar > * { flex-shrink: 0; }
	.fz .tp-viewbar > .tp-seg[aria-label="Ansicht"] { order: -1; }
	.fz .tp-viewbar > #fz-zoom.is-off { display: none; }
}

/* Der Planer bildet eine eigene Ebene unter dem Shop: seine Zeichnung (klebt beim Scrollen, z-index 5) lag sonst über
   den aufgeklappten Menüs des Hauptmenüs (z-index 1 bis 4). Innen bleibt die Reihenfolge, wie sie ist. */
.tp.fz { isolation: isolate; }
