/* Qubinox · Konfigurator-Studio – shared basics (reset, logo, toast). Each approach has its own vN.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { display: block; }
:focus-visible { outline: 2px solid #EC8306; outline-offset: 2px; }
[hidden] { display: none !important; }
.st-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* original logo: cube + wordmark (mask of the deck graphic) */
.st-logo { display: inline-flex; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; }
.st-logo svg { width: 1.5rem; height: 1.5rem; }
.st-word { width: 5.2rem; height: 1.2rem; background: currentColor; -webkit-mask: url(../assets/logo/qubinox-wordmark.png) center / contain no-repeat; mask: url(../assets/logo/qubinox-wordmark.png) center / contain no-repeat; }

/* the 3D canvas fills its box */
.st-gl { position: absolute; inset: 0; }
.st-gl canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }

/* toast */
.st-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; display: grid; gap: 0.125rem; max-width: min(26rem, calc(100vw - 2rem)); padding: 0.875rem 1.125rem;
  background: #17181A; color: #F4F2EE; font-size: 0.875rem; line-height: 1.4; box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
  opacity: 0; transform: translate(-50%, 1rem); pointer-events: none; transition: opacity 260ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.st-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.st-toast span { color: rgba(244, 242, 238, 0.72); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; } }

/* Übersicht (overviewHTML in studio.js): outputs from the technical task. Each page sets the --so-* tokens. */
.so { --so-ink: #17181A; --so-ink-2: rgba(23, 24, 26, 0.62); --so-line: rgba(23, 24, 26, 0.12); --so-bg: #F2F1EE; --so-accent: #EC8306; --so-display: inherit;
  display: grid; gap: 2rem; color: var(--so-ink); }
.so-h { margin: 0 0 0.875rem; font-size: 1rem; font-weight: 600; }
.so-note { margin: 0.5rem 0 0; color: var(--so-ink-2); font-size: 0.8125rem; }
.so-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--so-line); border: 1px solid var(--so-line); }
.so-facts div { display: grid; gap: 0.25rem; padding: 0.875rem 1rem; background: var(--so-bg); }
.so-facts dt { color: var(--so-ink-2); font-size: 0.8125rem; }
.so-facts dd { margin: 0; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.so-facts .so-total { font-family: var(--so-display); font-size: 1.5rem; }
.so-facts + .so-note { margin-top: -1.5rem; }
.so-sug ul, .so-guides ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.so-sug__b { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 2rem; align-items: center; gap: 0.875rem; width: 100%; padding: 0.5rem; text-align: left;
  border: 1px solid var(--so-line); transition: border-color 200ms ease, background-color 200ms ease; }
.so-sug__b:hover { border-color: var(--so-ink); }
.so-sug__b[aria-pressed="true"] { border-color: var(--so-ink); background: var(--so-bg); }
.so-sug__b img { width: 3.5rem; height: 3.5rem; object-fit: cover; }
.so-sug__b span { display: grid; gap: 0.125rem; min-width: 0; }
.so-sug__b b { font-size: 0.9375rem; font-weight: 500; }
.so-sug__b small, .so-sug__b em { color: var(--so-ink-2); font-size: 0.8125rem; font-style: normal; }
.so-sug__b i { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--so-line); font-style: normal; transition: background-color 200ms ease, color 200ms ease; }
.so-sug__b[aria-pressed="true"] i { background: var(--so-ink); color: var(--so-bg); border-color: var(--so-ink); }
.so-bom table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.so-bom th { padding: 0 0.5rem 0.5rem 0; color: var(--so-ink-2); font-weight: 400; text-align: left; border-bottom: 1px solid var(--so-ink); }
.so-bom td { padding: 0.625rem 0.5rem 0.625rem 0; vertical-align: top; border-bottom: 1px solid var(--so-line); }
.so-bom td:first-child { white-space: nowrap; color: var(--so-ink-2); }
.so-bom td small { display: block; color: var(--so-ink-2); font-size: 0.75rem; }
.so-bom th:nth-child(n+3), .so-bom td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.so-bom th:last-child, .so-bom td:last-child { padding-right: 0; }
.so-bom tfoot td { border-bottom: 0; color: var(--so-ink); font-weight: 600; }
.so-bom tfoot td:last-child { text-align: right; white-space: nowrap; }
.so-guides ul { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.so-guides li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: 0.875rem; padding: 0.5rem; border: 1px solid var(--so-line); }
.so-qr { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; padding: 0.25rem; background: #FFFFFF; color: #17181A; font-size: 0.6875rem; text-align: center; text-decoration: none; }
.so-qr svg { width: 100%; height: 100%; }
.so-qr--todo { border: 1px dashed var(--so-line); background: transparent; color: var(--so-ink-2); }
.so-guides li span { display: grid; gap: 0.125rem; }
.so-guides b { font-size: 0.9375rem; font-weight: 500; }
.so-guides small { color: var(--so-ink-2); font-size: 0.8125rem; }
.so-guides .is-todo b { color: var(--so-ink-2); }
.so-pic { width: 100%; height: auto; margin-bottom: 0.875rem; background: var(--so-bg); }
.so-code { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 0.5rem; font-size: 0.875rem; }
.so-code span { color: var(--so-ink-2); }
.so-code b { font-weight: 600; letter-spacing: 0.02em; }
.so-url { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--so-line); border-radius: 0; background: transparent; color: var(--so-ink-2); font-size: 0.8125rem; text-overflow: ellipsis; }
.so-acts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.so-acts button { flex: 1 1 auto; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--so-ink); font-size: 0.875rem; transition: background-color 200ms ease, color 200ms ease; }
.so-acts button:hover { background: var(--so-ink); color: var(--so-bg); }
@media (max-width: 30rem) { .so-facts { grid-template-columns: minmax(0, 1fr); } }
