/* VF-TEK Online-Slicer - eigenes Stylesheet, bewusst gekapselt unter .vfs-* */

.vfs-wrap {
	--vfs-orange: #EF7202;
	--vfs-orange-dark: #c85e01;
	--vfs-ink: #222222;
	--vfs-muted: #7a8290;
	--vfs-line: #e3e6ec;
	--vfs-bg: #f6f7f9;
	--vfs-card: #ffffff;
	--vfs-ok: #2e8b57;
	--vfs-warn: #b8730a;
	--vfs-err: #c0392b;
	--vfs-radius: 12px;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	color: var(--vfs-ink);
	box-sizing: border-box;
}
.vfs-wrap *, .vfs-wrap *::before, .vfs-wrap *::after { box-sizing: inherit; }

.vfs-hero { text-align: center; margin-bottom: 28px; }
.vfs-hero h1 { font-size: 30px; font-weight: 700; margin: 0 0 8px; color: var(--vfs-ink); }
.vfs-hero p.vfs-sub { font-size: 16px; color: var(--vfs-orange); font-weight: 600; margin: 0 0 10px; }
.vfs-hero p.vfs-intro { font-size: 14px; color: var(--vfs-muted); max-width: 720px; margin: 0 auto; line-height: 1.7; }

/* ---------- Layout ---------- */
.vfs-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 991px) { .vfs-grid { grid-template-columns: 1fr; } }

.vfs-card {
	background: var(--vfs-card);
	border: 1px solid var(--vfs-line);
	border-radius: var(--vfs-radius);
	padding: 20px;
	margin-bottom: 20px;
}
.vfs-card h2 {
	font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
	margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--vfs-line);
	display: flex; align-items: center; gap: 9px;
}
.vfs-card h2 .vfs-step {
	background: var(--vfs-orange); color: #fff; width: 24px; height: 24px; flex: 0 0 24px;
	border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700; letter-spacing: 0;
}

/* ---------- Viewer ---------- */
/* Die Kopfleiste der Website klebt selbst mit 137 px Höhe oben -
   die Vorschau muss darunter einrasten, sonst verschwindet sie dahinter. */
.vfs-viewer-col { position: sticky; top: 152px; }
@media (max-width: 991px) { .vfs-viewer-col { position: static; } }

.vfs-drop {
	position: relative; border: 2px dashed var(--vfs-line); border-radius: var(--vfs-radius);
	background: linear-gradient(180deg, #fbfcfd 0%, #f2f4f7 100%);
	min-height: 420px; display: flex; align-items: center; justify-content: center;
	text-align: center; padding: 24px; cursor: pointer; overflow: hidden;
	transition: border-color .18s, background .18s;
}
.vfs-drop.vfs-over { border-color: var(--vfs-orange); background: #fff6ec; }
.vfs-drop.vfs-has-model { cursor: default; border-style: solid; background: #f2f4f7; padding: 0; }
.vfs-drop canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.vfs-drop-inner { pointer-events: none; }
.vfs-drop.vfs-has-model .vfs-drop-inner { display: none; }
.vfs-drop-icon { font-size: 46px; color: var(--vfs-orange); margin-bottom: 14px; }
.vfs-drop-inner h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.vfs-drop-inner p { font-size: 13px; color: var(--vfs-muted); margin: 0 0 4px; }
.vfs-drop-inner .vfs-btn { pointer-events: auto; margin-top: 14px; }

.vfs-canvas-host { position: absolute; inset: 0; display: none; }
.vfs-drop.vfs-has-model .vfs-canvas-host { display: block; }

.vfs-viewer-bar {
	position: absolute; left: 0; right: 0; bottom: 0; display: none;
	justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
	padding: 9px 12px; background: rgba(255,255,255,.93); border-top: 1px solid var(--vfs-line);
	font-size: 12px; color: var(--vfs-muted);
}
.vfs-drop.vfs-has-model .vfs-viewer-bar { display: flex; }
.vfs-viewer-bar b { color: var(--vfs-ink); font-weight: 600; }
.vfs-viewer-actions { display: flex; gap: 6px; }
.vfs-icon-btn {
	border: 1px solid var(--vfs-line); background: #fff; border-radius: 7px; cursor: pointer;
	padding: 4px 10px; font-size: 12px; color: var(--vfs-ink); font-family: inherit;
}
.vfs-icon-btn:hover { border-color: var(--vfs-orange); color: var(--vfs-orange); }

.vfs-loading {
	position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
	flex-direction: column; gap: 12px; background: rgba(255,255,255,.94); z-index: 5;
	font-size: 14px; color: var(--vfs-muted);
}
.vfs-loading.vfs-on { display: flex; }
.vfs-spinner {
	width: 34px; height: 34px; border: 3px solid var(--vfs-line);
	border-top-color: var(--vfs-orange); border-radius: 50%; animation: vfs-spin .8s linear infinite;
}
@keyframes vfs-spin { to { transform: rotate(360deg); } }

/* ---------- Modellwerte ---------- */
.vfs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
@media (max-width: 575px) { .vfs-stats { grid-template-columns: repeat(2, 1fr); } }
.vfs-stat { background: var(--vfs-bg); border-radius: 9px; padding: 11px 12px; text-align: center; }
.vfs-stat span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--vfs-muted); margin-bottom: 3px; }
.vfs-stat b { font-size: 15px; font-weight: 700; }

/* ---------- Formular ---------- */
.vfs-field { margin-bottom: 16px; }
.vfs-field > label, .vfs-label {
	display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .4px; color: var(--vfs-ink); margin-bottom: 7px;
}
.vfs-field .vfs-hint { font-size: 12px; color: var(--vfs-muted); margin: 6px 0 0; line-height: 1.55; }

.vfs-wrap select, .vfs-wrap input[type=text], .vfs-wrap input[type=email],
.vfs-wrap input[type=tel], .vfs-wrap input[type=number], .vfs-wrap textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--vfs-line); border-radius: 8px;
	font-size: 14px; font-family: inherit; color: var(--vfs-ink); background: #fff;
	-webkit-appearance: none; appearance: none; height: auto; box-shadow: none;
}
.vfs-wrap select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%237a8290' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.vfs-wrap select:focus, .vfs-wrap input:focus, .vfs-wrap textarea:focus {
	outline: none; border-color: var(--vfs-orange); box-shadow: 0 0 0 3px rgba(239,114,2,.13);
}
.vfs-wrap textarea { min-height: 96px; resize: vertical; }
.vfs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 575px) { .vfs-row { grid-template-columns: 1fr; } }

/* Farbwahl */
.vfs-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.vfs-color {
	width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--vfs-line);
	cursor: pointer; position: relative; padding: 0; transition: transform .12s;
}
.vfs-color:hover { transform: scale(1.08); }
.vfs-color.vfs-active { border-color: var(--vfs-orange); box-shadow: 0 0 0 3px rgba(239,114,2,.2); }
.vfs-color-name { font-size: 12px; color: var(--vfs-muted); margin-top: 8px; }

/* Füllung */
.vfs-wrap input[type=range] {
	width: 100%; -webkit-appearance: none; appearance: none; background: transparent; padding: 0; margin: 6px 0;
}
.vfs-wrap input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--vfs-line); }
.vfs-wrap input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--vfs-line); }
.vfs-wrap input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
	background: var(--vfs-orange); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.28); cursor: pointer;
}
.vfs-wrap input[type=range]::-moz-range-thumb {
	width: 18px; height: 18px; border-radius: 50%; background: var(--vfs-orange);
	border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.28); cursor: pointer;
}
.vfs-range-head { display: flex; justify-content: space-between; align-items: baseline; }
.vfs-range-head b { color: var(--vfs-orange); font-size: 15px; }

/* Auswahlkacheln */
.vfs-tiles { display: grid; gap: 9px; }
.vfs-tile {
	display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
	border: 1px solid var(--vfs-line); border-radius: 9px; background: #fff; transition: border-color .15s, background .15s;
}
.vfs-tile:hover { border-color: #c9ced8; }
.vfs-tile.vfs-active { border-color: var(--vfs-orange); background: #fff8f2; }
.vfs-tile input { margin: 3px 0 0; flex: 0 0 auto; width: auto; }
.vfs-tile-body strong { display: block; font-size: 14px; font-weight: 600; }
.vfs-tile-body small { display: block; font-size: 12px; color: var(--vfs-muted); margin-top: 2px; line-height: 1.5; }

/* ---------- Preisbox ---------- */
.vfs-price-card { border: 2px solid var(--vfs-orange); background: #fff; }
.vfs-price-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.vfs-price-head .vfs-label { margin: 0; }
.vfs-price-total { font-size: 32px; font-weight: 700; color: var(--vfs-orange); line-height: 1.1; }
.vfs-price-note { font-size: 12px; color: var(--vfs-muted); margin-top: 4px; }
.vfs-price-idle { color: var(--vfs-muted); font-size: 14px; }

.vfs-break { margin-top: 16px; border-top: 1px solid var(--vfs-line); padding-top: 12px; }
.vfs-break table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vfs-break td { padding: 5px 0; vertical-align: top; }
.vfs-break td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.vfs-break tr.vfs-sum td { border-top: 1px solid var(--vfs-line); padding-top: 9px; font-weight: 700; }
.vfs-break tr.vfs-discount td { color: var(--vfs-ok); }
.vfs-break-toggle {
	background: none; border: 0; color: var(--vfs-orange); font-size: 12.5px; font-weight: 600;
	cursor: pointer; padding: 10px 0 0; font-family: inherit;
}

/* ---------- Meldungen ---------- */
.vfs-msg { padding: 12px 14px; border-radius: 9px; font-size: 13.5px; line-height: 1.6; margin-bottom: 14px; }
.vfs-msg ul { margin: 6px 0 0; padding-left: 18px; }
.vfs-msg-err  { background: #fdecea; color: #922; border: 1px solid #f5c6c2; }
.vfs-msg-warn { background: #fff6e5; color: #7a5200; border: 1px solid #f2dcae; }
.vfs-msg-ok   { background: #e9f7ef; color: #1e6b41; border: 1px solid #bfe5cf; }
.vfs-msg-info { background: #eef3f9; color: #33506e; border: 1px solid #cddced; }

/* ---------- Buttons ---------- */
.vfs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border: 0; border-radius: 9px; cursor: pointer;
	background: linear-gradient(90deg, var(--vfs-orange), var(--vfs-orange-dark));
	color: #fff; font-size: 14px; font-weight: 700; font-family: inherit;
	text-decoration: none; transition: filter .15s;
}
.vfs-btn:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.vfs-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.vfs-btn-block { width: 100%; }
.vfs-btn-ghost { background: #fff; color: var(--vfs-ink); border: 1px solid var(--vfs-line); }
.vfs-btn-ghost:hover { border-color: var(--vfs-orange); color: var(--vfs-orange); }

/* ---------- Kontaktabschnitt ---------- */
.vfs-contact[hidden] { display: none; }
.vfs-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--vfs-ink); }
.vfs-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; }
.vfs-check a { color: var(--vfs-orange); }
.vfs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.vfs-success { text-align: center; padding: 34px 20px; }
.vfs-success .vfs-success-icon { font-size: 52px; color: var(--vfs-ok); margin-bottom: 12px; }
.vfs-success h2 { border: 0; display: block; text-transform: none; font-size: 22px; letter-spacing: 0; }
.vfs-success .vfs-order-no {
	display: inline-block; margin: 10px 0 16px; padding: 8px 18px; background: var(--vfs-bg);
	border-radius: 8px; font-size: 17px; font-weight: 700; letter-spacing: .5px;
}

.vfs-required { color: var(--vfs-err); }
.vfs-foot-note { font-size: 12px; color: var(--vfs-muted); line-height: 1.7; margin-top: 18px; text-align: center; }

/* Bootstrap des Haupttemplates ueberschreibt [hidden] gelegentlich. */
.vfs-wrap [hidden] { display: none !important; }

/* ---------- Bauteilliste ---------- */
.vfs-parts { display: grid; gap: 8px; margin-top: 16px; }
.vfs-part {
	display: flex; align-items: center; gap: 12px; padding: 11px 13px; cursor: pointer;
	border: 1px solid var(--vfs-line); border-radius: 9px; background: #fff; transition: border-color .15s, background .15s;
}
.vfs-part:hover { border-color: #c9ced8; }
.vfs-part.vfs-active { border-color: var(--vfs-orange); background: #fff8f2; }
.vfs-part-main { min-width: 0; flex: 1; }
.vfs-part-main strong { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vfs-part-main small { display: block; font-size: 11.5px; color: var(--vfs-muted); margin-top: 2px; }
.vfs-part-side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.vfs-part-side b { font-size: 14px; white-space: nowrap; }
.vfs-dots { color: var(--vfs-muted); }
.vfs-part-del {
	border: 0; background: none; color: var(--vfs-muted); font-size: 20px; line-height: 1;
	cursor: pointer; padding: 0 4px; border-radius: 5px;
}
.vfs-part-del:hover { color: var(--vfs-err); background: #fdecea; }

/* ---------- Konfiguration je Bauteil ---------- */
.vfs-config-for {
	font-size: 12.5px; color: var(--vfs-muted); margin: 0 0 14px; padding: 8px 11px;
	background: var(--vfs-bg); border-radius: 7px;
}
.vfs-config-for b { color: var(--vfs-ink); }
.vfs-order-options { margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--vfs-line); }

/* ---------- Größe und Ausrichtung ---------- */
.vfs-transform { border-top: 1px solid var(--vfs-line); padding-top: 16px; margin-top: 4px; }
.vfs-scale-row, .vfs-rot-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.vfs-scale-row label { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.vfs-scale-row input { width: 92px; }
.vfs-rot-row span { font-size: 12.5px; color: var(--vfs-muted); }
.vfs-icon-btn.vfs-hilite { border-color: var(--vfs-orange); color: var(--vfs-orange); font-weight: 700; }

.vfs-source { font-size: 11.5px; color: var(--vfs-muted); margin: 9px 0 0; font-style: italic; }
.vfs-break td small { color: var(--vfs-muted); font-weight: 400; }

/* ---------- Voreinstellung ohne Modell ---------- */
.vfs-config-for.vfs-preset { border-left: 3px solid var(--vfs-orange); }

/* ---------- Mehrfarbdruck ---------- */
.vfs-multicolor { border-top: 1px solid var(--vfs-line); padding-top: 16px; margin-top: 4px; }
.vfs-mc-count { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; }
.vfs-mc-count label { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.vfs-mc-count select { width: 84px; }
.vfs-mc-list { display: grid; gap: 9px; }
.vfs-mc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vfs-mc-no {
	flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--vfs-ink);
	color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex;
	align-items: center; justify-content: center;
}
.vfs-mc-row .vfs-colors { flex: 1 1 auto; gap: 6px; }
.vfs-mc-row .vfs-color { width: 27px; height: 27px; }
.vfs-mc-h { font-size: 12.5px; color: var(--vfs-muted); white-space: nowrap; }
.vfs-mc-h input { width: 74px; padding: 5px 7px; font-size: 13px; display: inline-block; }
