/* Home page (redesign 24.09.2026). Builds on the FluxDoc design system in /fluxdoc/fluxdoc.css (.fd scope).
 * Without JavaScript or with reduced motion every part shows its final, readable state. */

/* ---------- Hero with scene ---------- */
.hm-hero { padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 104px); background: radial-gradient(60rem 30rem at 85% 0%, rgba(96, 165, 250, 0.1), transparent 70%); }
.hm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.fd .hm-hero h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.035em; }
.hm-hero .fd-eyebrow { font-weight: 650; color: var(--fd-blue-ink); letter-spacing: 0.01em; }

.hm-scene { margin: 0; }
.hm-scene__stage { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 2; background: #eef2f8; box-shadow: 0 1px 2px rgba(15, 31, 56, 0.05), 0 50px 90px -50px rgba(15, 31, 56, 0.45); isolation: isolate; }
.hm-scene__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hm-scene__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35) 100%); z-index: 0; }
.hm-scene__cards { position: absolute; inset: 0; z-index: 2; }
.hm-card { position: absolute; display: grid; gap: 4px; width: min(52%, 300px); padding: 12px 14px; background: #fff; border: 1px solid var(--fd-line); border-radius: 14px; box-shadow: var(--fd-shadow-lift); font-size: 13px; line-height: 1.4; color: var(--fd-text); }
.hm-card strong { font: 650 14.5px/1.35 var(--fd-heading); color: var(--fd-ink); }
.hm-card__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fd-muted); }
.hm-card__text { color: var(--fd-muted); }
.hm-card__mark { justify-self: start; background: var(--fd-blue-mark); color: var(--fd-ink); border-radius: 5px; padding: 2px 6px; box-shadow: 0 0 0 1.5px rgba(18, 99, 255, 0.5); font-weight: 650; }
.hm-card__status { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--fd-amber); background: var(--fd-amber-soft); border-radius: 999px; padding: 3px 10px; }
.hm-card__status i { width: 7px; height: 7px; border-radius: 50%; background: #d97706; }
.hm-card--anfrage { left: 5%; top: 7%; }
.hm-card--stand { right: 5%; top: 34%; }
.hm-card--entwurf { right: 9%; bottom: 7%; border-color: #cfdcfb; box-shadow: 0 0 0 4px rgba(18, 99, 255, 0.08), var(--fd-shadow-lift); }
.hm-scene__thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hm-scene__thread path { fill: none; stroke: #1263FF; stroke-width: 0.5; stroke-dasharray: 2 1.5; vector-effect: non-scaling-stroke; opacity: 0.55; }
.hm-scene figcaption { margin-top: 10px; font-size: 13px; color: var(--fd-muted); text-align: right; }
/* One pass, about three seconds, then everything stands (no loop). */
.hm-scene[data-phase="idle"] .hm-card { opacity: 0; transform: translateY(14px); }
.hm-scene[data-phase="idle"] .hm-scene__thread path { stroke-dashoffset: 200; opacity: 0; }
.hm-scene[data-phase="play"] .hm-card { animation: hm-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i) * 0.85s + 0.25s); }
.hm-scene[data-phase="play"] .hm-scene__thread path { animation: hm-thread 2.2s ease-out 0.6s both; }
.hm-scene[data-phase="play"] .hm-card__mark { animation: hm-mark 0.5s ease-out 1.6s both; }
@keyframes hm-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes hm-thread { from { opacity: 0; stroke-dasharray: 0 200; } to { opacity: 0.55; } }
@keyframes hm-mark { from { background: transparent; box-shadow: 0 0 0 0 transparent; } }

/* ---------- So fangen wir an ---------- */
.hm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 56px); counter-reset: none; }
.hm-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--fd-line); border-radius: 22px; }
.hm-step:first-child { background: var(--fd-blue-soft); border-color: #cfdcfb; }
.hm-step__number { font: 600 14px/1 var(--fd-heading); color: var(--fd-blue-ink); letter-spacing: 0.04em; }
.hm-step h3 { font-size: 21px; letter-spacing: -0.015em; margin-top: 6px; }
.fd .hm-step__meta { font-size: 14px; font-weight: 650; color: var(--fd-ink); }
.hm-step p:not(.hm-step__meta) { font-size: 15.5px; color: var(--fd-muted); }
.hm-step .hm-link { margin-top: auto; padding-top: 10px; }
.fd .hm-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 15px; color: var(--fd-blue-ink); text-decoration: none; }
.fd .hm-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-more { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; }

/* ---------- Task picker: before and after ---------- */
.hm-tasks { background: linear-gradient(180deg, #f6f8fc 0%, #eef3fb 100%); }
.hm-picker { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 20px; margin-top: clamp(32px, 4vw, 48px); align-items: start; }
.hm-picker__tabs { display: grid; gap: 6px; }
.fd .hm-picker__tab { display: grid; gap: 2px; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; background: transparent; font: inherit; color: var(--fd-text); cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .3s; }
.hm-picker__tab strong { font: 650 16px/1.3 var(--fd-heading); color: var(--fd-ink); }
.hm-picker__tab span { font-size: 14px; color: var(--fd-muted); }
.fd .hm-picker__tab:hover { background: #fff; border-color: var(--fd-line); }
.fd .hm-picker__tab[aria-selected="true"] { background: #fff; border-color: #cfdcfb; box-shadow: 0 8px 20px -14px rgba(18, 99, 255, 0.6), inset 3px 0 0 var(--fd-blue); }
.hm-picker__panel { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.15fr); grid-template-rows: auto auto; gap: 0; align-items: center; padding: clamp(20px, 3vw, 32px); background: #fff; border: 1px solid #d9e3f2; border-radius: 26px; box-shadow: 0 2px 6px rgba(15, 31, 56, 0.05), 0 40px 90px -50px rgba(15, 31, 56, 0.4); }
.hm-picker__panel[hidden] { display: none; }
.hm-note { display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--fd-line); background: #fff; }
.hm-note--before { background: #fbfaf6; border-color: #ebe6da; transform: rotate(-1deg); }
.hm-note--after { border-color: #cfdcfb; box-shadow: 0 0 0 4px rgba(18, 99, 255, 0.06), var(--fd-shadow); }
.hm-note__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fd-muted); }
.hm-note--after .hm-note__label { color: var(--fd-blue-ink); }
.hm-note__from { font-size: 13px; font-weight: 650; color: var(--fd-ink); }
.hm-note p { font-size: 15.5px; color: var(--fd-text); }
.fd .hm-note__result { font: 600 17px/1.45 var(--fd-heading); color: var(--fd-ink); }
.hm-note__source { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fd-green); }
.hm-picker__thread { position: relative; height: 2px; margin-inline: 8px; background: repeating-linear-gradient(90deg, #b8c9ee 0 6px, transparent 6px 11px); }
.hm-picker__thread i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--fd-blue); box-shadow: 0 0 0 4px rgba(18, 99, 255, 0.16); left: calc(100% - 8px); }
.hm-picker.is-live .hm-picker__panel.is-entering .hm-note--after { animation: hm-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.hm-picker.is-live .hm-picker__panel.is-entering .hm-picker__thread i { animation: hm-run 0.6s ease-in-out both; }
@keyframes hm-run { from { left: 0; } to { left: calc(100% - 8px); } }
.hm-picker__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--fd-line); }
.hm-picker__foot > p:first-child { font-size: 15.5px; color: var(--fd-ink); font-weight: 550; }
.hm-picker__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fd .hm-link--product { color: var(--fd-green); }

/* ---------- Products ---------- */
.hm-products__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
.hm-product { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); overflow: clip; border: 1px solid var(--fd-line); border-radius: 28px; background: #fff; transition: box-shadow .4s, transform .4s; }
.hm-product:hover { box-shadow: var(--fd-shadow); transform: translateY(-2px); }
.hm-product__visual { position: relative; display: grid; place-items: center; min-height: 260px; background: linear-gradient(180deg, #f1f5fd 0%, #f8faff 100%); border-right: 1px solid var(--fd-line); overflow: hidden; }
.hm-product--fluxdoc .hm-product__visual img { width: 94%; height: auto; margin-top: 14%; }
.hm-product__text { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 32px); }
.hm-product__text h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.02em; }
.hm-product__text p { color: var(--fd-muted); font-size: 16px; }
.fd .hm-product__meta { font-size: 14px; font-weight: 650; color: var(--fd-ink); }
.hm-product__text .fd-button { margin-top: auto; align-self: flex-start; }
.hm-mini { display: grid; gap: 8px; width: 86%; }
.hm-mini__row { display: grid; gap: 2px; padding: 10px 12px; background: #fff; border: 1px solid var(--fd-line); border-radius: 12px; font-size: 12.5px; color: var(--fd-text); box-shadow: 0 8px 18px -14px rgba(15, 31, 56, 0.4); }
.hm-mini__row b { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fd-muted); }
.hm-mini__row--done { border-color: #cfdcfb; box-shadow: 0 0 0 3px rgba(18, 99, 255, 0.07); }

/* ---------- Team ---------- */
.hm-team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
.hm-person { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--fd-line); border-radius: 24px; background: #fff; }
.hm-person img { width: 140px; height: 170px; object-fit: cover; object-position: 50% 0%; border-radius: 18px; }
.hm-person h3 { font-size: 22px; letter-spacing: -0.015em; }
.fd .hm-person__role { margin: 2px 0 8px; font-size: 14px; font-weight: 650; color: var(--fd-blue-ink); }
.hm-person p:last-child { color: var(--fd-muted); font-size: 15.5px; }
.hm-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 20px; }
.fd .hm-contact a { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--fd-blue-ink); text-decoration: none; }
.fd .hm-contact a:hover { text-decoration: underline; }
.hm-contact span { font-size: 13px; color: var(--fd-muted); }

/* ---------- Control: three steps with a thread ---------- */
.hm-flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
.hm-flow::before { content: ""; position: absolute; left: 8%; right: 8%; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, #b8c9ee 0 6px, transparent 6px 11px); }
.hm-flow li { position: relative; display: grid; gap: 8px; padding: 0 6px; }
.hm-flow__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--fd-blue); color: var(--fd-blue-ink); font: 650 16px/1 var(--fd-heading); }
.hm-flow h3 { margin-top: 8px; font-size: 20px; }
.hm-flow p { color: var(--fd-muted); font-size: 16px; }
.hm-control .fd-section__lead a { color: var(--fd-blue-ink); }

/* ---------- Industries ---------- */
.hm-industries { background: var(--fd-soft); }
.hm-industries__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hm-industries__list { display: flex; flex-wrap: wrap; gap: 10px; }
.fd .hm-industries__list a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--fd-line-strong); border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; color: var(--fd-ink); text-decoration: none; transition: border-color .2s; }
.fd .hm-industries__list a:hover { border-color: var(--fd-blue); }
.fd .hm-industries__list .is-focus a { background: var(--fd-blue-soft); border-color: #cfdcfb; color: var(--fd-blue-ink); }

/* ---------- Small screens ---------- */
@media (max-width: 1080px) {
  .hm-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-picker { grid-template-columns: minmax(0, 1fr); }
  .hm-picker__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-products__grid, .hm-team__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .hm-steps, .hm-flow, .hm-industries__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-flow::before { display: none; }
  .hm-picker__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd .hm-picker__tab { padding: 10px 12px; }
  .hm-picker__tab span { display: none; }
  .hm-picker__panel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hm-picker__thread { width: 2px; height: 28px; margin: 0 auto; background: repeating-linear-gradient(180deg, #b8c9ee 0 6px, transparent 6px 11px); }
  .hm-picker__thread i { display: none; }
  .hm-product { grid-template-columns: minmax(0, 1fr); }
  .hm-product__visual { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--fd-line); }
  .hm-person { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .hm-person img { width: 96px; height: 120px; }
  .hm-card { width: 62%; padding: 9px 11px; font-size: 12px; }
  .hm-card strong { font-size: 13px; }
  .hm-card--stand { display: none; }
  .hm-scene__thread { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-scene .hm-card, .hm-scene .hm-scene__thread path, .hm-card__mark, .hm-picker__panel * { animation: none !important; opacity: 1 !important; transform: none; }
}

/* Customer voice inside the new page: same rhythm as the other sections. */
#main.hm .fwt.fwt { padding-block: clamp(24px, 4vw, 48px) !important; }

/* Prüfrunde V2 (24.09.2026) */
.fd-close__panel { position: relative; }
.hm-mini__row b, .hm-card__label, .hm-card__status { font-size: 13px; }
@media (max-width: 359px) {
  /* Very narrow phones: the three cards sit below the picture instead of over it. */
  .hm-scene__stage { overflow: visible; aspect-ratio: auto; background: none; box-shadow: none; border-radius: 0; }
  .hm-scene__stage::after { display: none; }
  .hm-scene__img { position: static; display: block; height: auto; aspect-ratio: 3 / 2; border-radius: 20px; }
  .hm-scene__cards { position: static; display: grid; gap: 8px; margin-top: 10px; }
  .hm-card { position: static !important; transform: none !important; width: auto !important; opacity: 1 !important; }
  .hm-card--stand { display: grid; }
  .hm-person { grid-template-columns: 1fr; }
}
