/* Lösung H „Klar“ – A's page order, E's photo hero, the original logo, Outfit only.
   Light, few colours: paper + stone + ink, orange only as the signal (logo top, configurator button). */
:root {
  --bg: #FFFFFF; --stone: #F3F2EF; --ink: #17181A; --ink-2: rgba(23, 24, 26, 0.66); --ink-3: rgba(23, 24, 26, 0.42);
  --line: rgba(23, 24, 26, 0.12); --line-2: rgba(23, 24, 26, 0.28); --orange: #EC8306;
  --font: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(1rem, 4vw, 4rem); --head: 4.5rem; --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bar: rgba(255, 255, 255, 0.96); --field: #FFFFFF; --end: #17181A; --end-fg: #FFFFFF;
  color-scheme: light;
}
/* dark: ink night with the same few colours (saved in qbx-theme like the other solutions) */
html[data-theme="dark"] {
  --bg: #121314; --stone: #1A1B1D; --ink: #F1EFEB; --ink-2: rgba(241, 239, 235, 0.68); --ink-3: rgba(241, 239, 235, 0.45);
  --line: rgba(241, 239, 235, 0.12); --line-2: rgba(241, 239, 235, 0.28);
  --bar: rgba(18, 19, 20, 0.94); --field: #1F2022; --end: #000000; --end-fg: #F1EFEB;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.h-wrap { width: min(80rem, 100% - 2 * var(--gut)); margin-inline: auto; }

/* logo: the original cube + the original wordmark (as a mask, so it takes the text colour) */
.h-logo { display: inline-flex; align-items: center; gap: 0.5rem; color: currentColor; text-decoration: none; }
.h-logo svg { width: 1.75rem; height: 1.75rem; }
.h-word { display: block; width: 6.4rem; height: 1.47rem; 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; }

/* header: white over the hero picture, ink on a white bar after scrolling */
.h-head { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 2rem; height: var(--head); padding: 0 var(--gut); color: #fff; transition: background-color 400ms ease, color 400ms ease, box-shadow 400ms ease; }
.h-head.is-solid { background: var(--bar); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.h-nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.9375rem; font-weight: 400; }
.h-nav a { text-decoration: none; opacity: 0.85; transition: opacity 200ms ease; }
.h-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
/* small theme toggle: sun / moon */
.h-theme { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-left: 0.25rem; padding: 0; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); background: none; color: inherit; cursor: pointer; transition: border-color 200ms ease; }
.h-theme:hover { border-color: currentColor; }
.h-theme svg { width: 1rem; height: 1rem; }
.h-theme .h-moon, html[data-theme="dark"] .h-theme .h-sun { display: none; }
html[data-theme="dark"] .h-theme .h-moon { display: block; }
.h-burger { display: none; margin-left: auto; padding: 0.5rem 0; border: 0; background: none; color: inherit; font: 400 0.9375rem/1 var(--font); cursor: pointer; }

/* the configurator button with the animated logo – appears a moment after the page loads */
.h-cfg { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0 1.25rem 0 1rem; background: var(--orange); color: #111; font: 500 0.9375rem/1 var(--font); text-decoration: none; transition: background-color 250ms ease; }
.h-cfg:hover { background: #F0952A; }
.h-cube { width: 1.375rem; height: 1.375rem; overflow: visible; }
.h-cube path { transition: fill 250ms ease; }
.h-cube__t { fill: #fff; } .h-cube__l { fill: #111; } .h-cube__r { fill: #111; opacity: 0.72; }
.h-cfg:hover .h-cube__t { fill: #111; } .h-cfg:hover .h-cube__l { fill: #fff; }
/* the cube builds itself: sides rise, the lid lands – then the lid lifts gently from time to time */
.h-cfg.is-in .h-cube__l { animation: h-side 700ms var(--ease) both; }
.h-cfg.is-in .h-cube__r { animation: h-side 700ms 120ms var(--ease) both; }
.h-cfg.is-in .h-cube__t { animation: h-lid 900ms 300ms var(--ease) both, h-breathe 5s 2.4s ease-in-out infinite; }
@keyframes h-side { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes h-lid { from { transform: translateY(-30px); opacity: 0; } 70% { transform: translateY(2px); opacity: 1; } to { transform: none; } }
@keyframes h-breathe { 0%, 82%, 100% { transform: none; } 88% { transform: translateY(-6px); } 94% { transform: translateY(1px); } }
.h-cfg[data-late] { opacity: 0; visibility: hidden; transform: translateY(0.5rem); transition: opacity 600ms var(--ease), transform 600ms var(--ease), visibility 0s 600ms, background-color 250ms ease; }
.h-cfg[data-late].is-in { opacity: 1; visibility: visible; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease), visibility 0s, background-color 250ms ease; }
.h-cfg--head { margin-left: 1rem; }
.h-cfg--big { min-height: 3.5rem; padding: 0 1.75rem 0 1.25rem; font-size: 1.125rem; }
.h-cfg--big .h-cube { width: 1.75rem; height: 1.75rem; }

/* menu (phones) */
.h-menu { position: fixed; inset: 0; z-index: 19; display: grid; align-content: center; gap: 2.5rem; padding: var(--head) var(--gut) 2rem; background: var(--bg); color: var(--ink);
  clip-path: inset(0 0 100% 0); transition: clip-path 600ms var(--ease); }
.h-menu.is-open { clip-path: inset(0); }
.h-menu nav { display: grid; gap: 0.25rem; }
.h-menu nav a { font-size: 2rem; font-weight: 300; text-decoration: none; }
html.h-menu-open .h-head { background: var(--bg); color: var(--ink); box-shadow: none; }

/* hero: E's photo slider (later a video) – on the first visit the picture opens from a window */
.h-hero { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; color: #fff; background: #2A2B2C; }
.h-hero__slides { position: absolute; inset: 0; }
.h-hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1400ms ease, transform 7000ms linear; }
.h-hero__slides img.is-on { opacity: 1; transform: scale(1); }
.h-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.55) 100%); pointer-events: none; }
html.h-intro .h-hero__slides { clip-path: inset(32% 36% 32% 36%); animation: h-open 1500ms 500ms var(--ease) forwards; }
@keyframes h-open { to { clip-path: inset(0 0 0 0); } }
.h-hero__in { position: absolute; inset: auto 0 0; z-index: 2; display: grid; gap: 1.25rem; padding: 0 var(--gut) 2rem; }
.h-hero__kick { margin: 0; font-size: 0.9375rem; font-weight: 400; opacity: 0.9; }
.h-hero__h { margin: 0; font-size: clamp(2.75rem, 7.2vw, 7rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.035em; }
.h-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.h-mask > span { display: block; transform: translateY(105%); transition: transform 1100ms var(--ease); }
.h-mask:nth-child(2) > span { transition-delay: 120ms; }
.is-ready .h-mask > span { transform: none; }
.h-hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.h-hero__ctrl { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.h-hero__count { margin-right: 0.75rem; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.h-hero__btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid rgba(255, 255, 255, 0.5); background: none; color: #fff; cursor: pointer; transition: background-color 250ms ease, color 250ms ease; }
.h-hero__btn:hover { background: #fff; color: var(--ink); }
.h-hero__btn svg { width: 1.25rem; height: 1.25rem; }
.h-hero__bar { display: block; height: 1px; background: rgba(255, 255, 255, 0.3); }
.h-hero__bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.h-hero__bar i.is-run { transform: scaleX(1); transition: transform var(--dur, 6s) linear; }

/* sections */
.h-sec { padding: clamp(4rem, 9vw, 8rem) 0; }
.h-sec--stone { background: var(--stone); }
.h-kick { margin: 0 0 0.75rem; font-size: 0.9375rem; font-weight: 400; color: var(--ink-2); }
.h-h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.035em; }
.h-h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.h-lead { margin: 1.25rem 0 0; max-width: 34rem; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.h-headrow { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.h-headrow .h-lead { margin: 0; }
.h-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.h-split--rev > :first-child { order: 0; }
.h-img { margin: 0; background: var(--stone); }
.h-specs { display: grid; margin: 2rem 0 0; border-top: 1px solid var(--line-2); }
.h-specs div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.h-specs dt { color: var(--ink-2); } .h-specs dd { margin: 0; font-weight: 500; text-align: right; }
.h-note { margin: 1rem 0 0; font-size: 0.8125rem; color: var(--ink-3); }

/* cards: real photos on the page (the configurator uses the 3D renders) */
.h-cards { display: grid; gap: clamp(1rem, 2vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
.h-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-cards--tpl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-cards li { display: grid; align-content: start; gap: 0.375rem; }
.h-cards img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--stone); }
.h-cards--tpl img { aspect-ratio: 4 / 3; }
.h-cards h3 { margin: 0.75rem 0 0; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.015em; }
.h-cards p { margin: 0; color: var(--ink-2); }
.h-cards small { font-size: 0.875rem; color: var(--ink-3); }
.h-cards a { display: grid; gap: 0.375rem; text-decoration: none; }
.h-cards a img { transition: opacity 300ms ease; }
.h-cards a:hover img { opacity: 0.86; }
.h-cards a:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.h-more { margin: 2.5rem 0 0; }
.h-link { display: inline-flex; align-items: center; gap: 0.5rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--line-2); text-decoration: none; font-weight: 400; transition: border-color 200ms ease; }
.h-link:hover { border-color: var(--ink); }
.h-link svg { width: 1.125rem; height: 1.125rem; }

/* colours */
.h-sw { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.h-sw button { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; padding: 0 1rem 0 0.625rem; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 400 0.9375rem/1 var(--font); cursor: pointer; transition: border-color 200ms ease; }
.h-sw button i { width: 1.5rem; height: 1.5rem; }
.h-sw button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.h-colors { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.h-colors canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

/* advantages as an infographic: line drawings that draw themselves */
.h-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.h-info li { display: grid; align-content: start; gap: 0.375rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-info svg { width: 7.5rem; height: 7.5rem; margin-bottom: 1rem; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.h-info .h-info__dim { stroke: var(--orange); }
.h-info b { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.h-info span { color: var(--ink-2); }
[data-draw] path { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
[data-draw].is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 1600ms var(--ease); }
[data-draw].is-in .h-info__dim { transition-delay: 500ms; }
[data-draw].is-done path { stroke-dasharray: none; }   /* WebKit: never end on the full dash length */

/* gallery */
.h-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.5rem, 1.2vw, 1rem); }
.h-gal figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #e7e5e0; }
.h-gal figure:nth-child(4n + 2) { aspect-ratio: 4 / 3; }
.h-gal img { width: 100%; height: 100%; object-fit: cover; }

/* questions */
.h-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); }
.h-acc details { border-bottom: 1px solid var(--line); }
.h-acc details:first-child { border-top: 1px solid var(--line-2); }
.h-acc summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font-size: 1.1875rem; font-weight: 400; list-style: none; cursor: pointer; }
.h-acc summary::-webkit-details-marker { display: none; }
.h-acc summary::after { content: "+"; font-weight: 300; color: var(--ink-2); }
.h-acc details[open] summary::after { content: "–"; }
.h-acc p { margin: 0 0 1.25rem; max-width: 38rem; color: var(--ink-2); }

/* end */
.h-end { padding: clamp(5rem, 11vw, 10rem) 0; background: var(--end); color: var(--end-fg); }
.h-end .h-lead { color: rgba(255, 255, 255, 0.7); margin-bottom: 2.5rem; }

/* social + footer */
.h-social { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); background: var(--stone); }
.h-feed { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.5rem, 1vw, 0.75rem); }
.h-feed a { display: block; aspect-ratio: 1; overflow: hidden; }
.h-feed img { width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms ease; }
.h-feed a:hover img { opacity: 0.85; }
.h-channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.h-channels a { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border: 1px solid var(--line-2); text-decoration: none; font-weight: 400; transition: border-color 200ms ease, background-color 200ms ease; }
.h-channels a:hover { border-color: var(--ink); background: var(--field); }
.h-channels svg { width: 1.375rem; height: 1.375rem; }
.h-foot { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.h-foot__in { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.h-foot nav { display: flex; gap: 1.5rem; margin-left: auto; }
.h-foot nav a { text-decoration: none; color: var(--ink-2); }
.h-foot nav a:hover { color: var(--ink); }
.h-foot p { width: 100%; margin: 0; font-size: 0.8125rem; color: var(--ink-3); }

/* reveal */
[data-up] { opacity: 0; transform: translateY(1.5rem); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
[data-up].is-in { opacity: 1; transform: none; }

@media (max-width: 63.99rem) {
  .h-nav, .h-cfg--head { display: none; }
  .h-burger { display: block; margin-left: 0.75rem; }
  .h-theme { margin-left: auto; }
  .h-split, .h-faq { grid-template-columns: minmax(0, 1fr); }
  .h-cards--3, .h-cards--tpl, .h-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-headrow { display: block; } .h-headrow .h-lead { margin-top: 1rem; }
}
@media (max-width: 39.99rem) {
  :root { --head: 4rem; }
  .h-cards--3, .h-cards--tpl, .h-info, .h-gal { grid-template-columns: minmax(0, 1fr); }
  .h-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-cards--3 h3 { font-size: 1.0625rem; } .h-cards--3 p { font-size: 0.875rem; }
  .h-gal figure, .h-gal figure:nth-child(4n + 2) { aspect-ratio: 4 / 3; }
  .h-feed, .h-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-hero__foot { flex-wrap: wrap; }
  .h-hero__count { display: none; }
  .h-info svg { width: 6rem; height: 6rem; }
}
