/* FluxDoc product page. Scoped to .fd; header, footer and base styles come from the approved website.
 * Without JavaScript or with reduced motion every visual shows its final, readable state. */
.fd {
  --fd-ink: #0f1f38;
  --fd-text: #33475f;
  --fd-muted: #5b6f86;
  --fd-line: #e0e8f2;
  --fd-line-strong: #c8d5e6;
  --fd-blue: #2563ff;
  --fd-blue-ink: #1a4fd6;
  --fd-blue-soft: #eef3ff;
  --fd-blue-mark: rgba(37, 99, 255, 0.13);
  --fd-paper: #fffdf8;
  --fd-soft: #f6f8fc;
  --fd-green: #11703a;
  --fd-green-soft: #e6f5ec;
  --fd-amber: #9a4a06;
  --fd-amber-soft: #fdf1df;
  --fd-shadow: 0 1px 2px rgba(15, 31, 56, 0.05), 0 18px 44px -18px rgba(15, 31, 56, 0.22);
  --fd-shadow-lift: 0 2px 4px rgba(15, 31, 56, 0.05), 0 30px 70px -24px rgba(15, 31, 56, 0.3);
  --fd-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fd-heading: "DM Sans Variable", "DM Sans", "Plus Jakarta Sans Variable", system-ui, sans-serif;
  --fd-body: "Plus Jakarta Sans Variable", "Plus Jakarta Sans", system-ui, sans-serif;
  --fd-top: 64px;
  display: block;
  color: var(--fd-text);
  font-family: var(--fd-body);
  font-size: 17px;
  line-height: 1.6;
  background: #fff;
  overflow-x: clip;
}
.fd *, .fd *::before, .fd *::after { box-sizing: border-box; }
.fd :where(h1, h2, h3, p, ul, ol, dl, dd, figure, table) { margin: 0; padding: 0; }
.fd :where(ul, ol) { list-style: none; }
.fd :where(h1, h2, h3) { color: var(--fd-ink); font-family: var(--fd-heading); font-weight: 600; text-wrap: balance; }
.fd p { text-wrap: pretty; }
.fd a { color: inherit; }
.fd :focus-visible { outline: 2px solid var(--fd-blue); outline-offset: 3px; border-radius: 6px; }
.fd .fd-icon { flex: none; display: block; }
.fd:not(.fd-js) [id] { scroll-margin-top: calc(var(--fd-top) + 68px); }
.fd-js .fd-demo__app { scroll-margin-top: 16px; }
html:has(main.fd) { scroll-padding-top: 140px; }
.fd-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

/* Chapter navigation */
.fd-chapters { position: sticky; top: var(--fd-top); z-index: 30; background: rgba(255, 255, 255, 0.97); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--fd-line); }
.fd-chapters__inner { display: flex; align-items: center; gap: 28px; min-height: 52px; }
.fd-chapters__name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fd-heading); font-weight: 650; font-size: 16px; color: var(--fd-ink); text-decoration: none; }
.fd-chapters__badge { font-family: var(--fd-body); font-size: 11px; font-weight: 700; color: var(--fd-blue-ink); background: var(--fd-blue-soft); border-radius: 999px; padding: 2px 8px; }
.fd-chapters__links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.fd-chapters__links::-webkit-scrollbar { display: none; }
.fd-chapters__links a { font-size: 14px; font-weight: 550; color: var(--fd-muted); text-decoration: none; white-space: nowrap; padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.fd-chapters__links a:hover { color: var(--fd-ink); background: var(--fd-soft); }
.fd-chapters__links a[aria-current="true"] { color: var(--fd-ink); background: var(--fd-blue-soft); }
.fd-motion { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--fd-body); color: var(--fd-muted); background: transparent; border: 1px solid var(--fd-line); border-radius: 999px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.fd-motion:hover { color: var(--fd-ink); border-color: var(--fd-line-strong); }
.fd-motion[hidden] { display: none; }
.fd-motion .fd-motion__play, .fd-motion[data-paused] .fd-motion__pause { display: none; }
.fd-motion[data-paused] .fd-motion__play { display: block; }
.fd-chapters__progress { height: 2px; background: transparent; }
.fd-chapters__progress i { display: block; height: 100%; background: var(--fd-blue); transform-origin: 0 50%; transform: scaleX(var(--fd-progress, 0)); }

/* Shared type and controls */
.fd-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fd-blue-ink); margin-bottom: 16px; }
.fd h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.035em; }
.fd h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.fd-section { padding-block: clamp(80px, 10vw, 140px); }
.fd-section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.fd-section__lead { margin-top: 18px; font-size: 19px; color: var(--fd-text); max-width: 36em; }
.fd-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 650 15px/1.2 var(--fd-body); text-decoration: none; border-radius: 12px; padding: 15px 22px; min-height: 48px; transition: transform .25s var(--fd-ease), box-shadow .25s var(--fd-ease), background-color .2s, border-color .2s; }
.fd .fd-button--primary { color: #fff; background: var(--fd-blue); box-shadow: 0 10px 24px -10px rgba(37, 99, 255, 0.65); }
.fd .fd-button--primary:hover { color: #fff; background: var(--fd-blue-ink); transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(37, 99, 255, 0.7); }
.fd .fd-button--quiet { color: var(--fd-ink); background: #fff; border: 1px solid var(--fd-line-strong); }
.fd-button--quiet:hover { border-color: var(--fd-ink); }
.fd-button--large { padding: 18px 26px; font-size: 16px; }
.fd-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--fd-blue); border-radius: 999px; padding: 3px 9px; }

/* Hero */
.fd-hero { padding-block: clamp(32px, 5vw, 72px) clamp(72px, 9vw, 120px); background: radial-gradient(60rem 30rem at 85% 0%, rgba(96, 165, 250, 0.1), transparent 70%); }
.fd-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.fd-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--fd-muted); margin-bottom: 24px; }
.fd h1 { font-size: clamp(36px, 4.7vw, 62px); line-height: 1.02; letter-spacing: -0.042em; }
.fd h1 span { display: block; color: var(--fd-blue); }
.fd-lead { margin-top: 28px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--fd-text); max-width: 33em; }
.fd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.fd-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--fd-line); }
.fd-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; color: var(--fd-muted); }
.fd-facts .fd-icon { color: var(--fd-blue); }

.fd-hero__stage { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.fd-hero__visual { flex: 1 0 100%; }
.fd-hero__visual { position: relative; padding: 0 0 16% 0; }
/* Photo stage: a real clipboard (generated product photo) carries the sample text as live HTML. */
.fd-hero__photo { position: relative; isolation: isolate; width: 80%; margin-left: auto; aspect-ratio: 964 / 1360; border-radius: 30px; overflow: hidden; background: #edf4fe; box-shadow: 0 1px 2px rgba(15, 31, 56, 0.05), 0 60px 100px -60px rgba(15, 31, 56, 0.5); }
.fd-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fd-hero__paper { position: absolute; left: 10.17%; top: 11.18%; width: 73.34%; height: 74.19%; container-type: inline-size; }
.fd .fd-hero__paper .fd-sheet { height: 100%; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 12% 8.5% 6%; font-size: clamp(8px, 3.75cqw, 14px); color: #1b2433; }
.fd-hero__paper .fd-sheet::before { display: none; }
.fd-hero__paper .fd-sheet__head { column-gap: .9em; row-gap: .3em; padding-bottom: 1.1em; border-bottom-width: .11em; }
.fd-hero__paper .fd-sheet__logo { width: 2.5em; height: 2.5em; border-radius: .6em; }
.fd-hero__paper .fd-sheet__head .fd-mark { font-size: 1.08em; }
.fd-hero__paper .fd-sheet__kind, .fd-hero__paper .fd-sheet__meta dt, .fd-hero__paper .fd-sheet__items thead th { font-size: .8em; }
.fd-hero__paper .fd-sheet__meta { gap: 1.3em; padding: 1em 0; }
.fd-hero__paper .fd-sheet__items th, .fd-hero__paper .fd-sheet__items td { padding: .45em 0; }
.fd .fd-hero__paper .fd-sheet__items td, .fd .fd-hero__paper .fd-sheet__items th { white-space: nowrap !important; word-break: normal !important; overflow-wrap: normal !important; }
.fd-hero__paper .fd-sheet__items td + td, .fd-hero__paper .fd-sheet__items th + th, .fd-hero__paper .fd-sheet__items th + td { padding-left: 1em; }
.fd-hero__paper .fd-sheet__items tfoot th, .fd-hero__paper .fd-sheet__items tfoot td { padding-top: .7em; }
.fd-hero__paper .fd-sheet__items small, .fd-hero__paper .fd-sheet__sign { display: none; }
.fd-export { position: absolute; left: 0; bottom: 0; width: 92%; background: #fff; border: 1px solid var(--fd-line); border-radius: 18px; box-shadow: var(--fd-shadow-lift); overflow: hidden; transform: translateY(calc(var(--fd-depth, 0) * -1px)); }
.fd-hero__stage figcaption { margin-left: auto; margin-top: 6px; font-size: 13px; color: var(--fd-muted); text-align: right; }
.fd-hero__stage .fd-motion { margin-top: 6px; }

/* Sample document */
.fd-sheet { position: relative; background: var(--fd-paper); border: 1px solid #e6e1d6; border-radius: 14px; padding: 26px 26px 22px; box-shadow: var(--fd-shadow); font-size: 13px; line-height: 1.45; color: #2a3446; overflow: hidden; font-variant-numeric: tabular-nums; }
.fd-sheet::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(15, 31, 56, 0.025) 27px 28px); pointer-events: none; }
.fd-sheet__head { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 5px; align-items: center; padding-bottom: 16px; border-bottom: 1.5px solid #2a3446; }
.fd-sheet__logo { grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #1e3a5f, #3b6ea5); }
.fd-sheet__head .fd-mark { justify-self: start; font-weight: 700; font-size: 14px; }
.fd-sheet__kind { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6b7686; }
.fd-sheet__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; padding: 14px 0; }
.fd-sheet__meta dt { font-size: 11px; color: #6b7686; }
.fd-sheet__meta dd { font-weight: 650; }
.fd-sheet__items { width: 100%; border-collapse: collapse; }
.fd-sheet__items th, .fd-sheet__items td { text-align: left; padding: 7px 0; border-bottom: 1px solid #e8e3d8; font-weight: 500; vertical-align: top; }
.fd-sheet__items thead th { font-size: 11px; color: #6b7686; font-weight: 600; }
.fd-sheet__items td:last-child, .fd-sheet__items th:last-child { text-align: right; white-space: nowrap; }
.fd-sheet__items small { display: block; font-size: 12px; color: #5b6f86; }
.fd-sheet__items tfoot th, .fd-sheet__items tfoot td { font-weight: 700; border-bottom: 0; padding-top: 10px; }
.fd-sheet__sign { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.fd-sheet__sign span { width: 96px; height: 22px; border-bottom: 1px solid #b9b2a4; background: radial-gradient(ellipse 30px 6px at 40% 70%, rgba(42, 52, 70, 0.35), transparent 70%); }
.fd-sheet__sign small { font-size: 10px; color: #7c8594; }
.fd-mark { background: transparent; color: inherit; border-radius: 5px; padding: 1px 4px; margin: -1px -4px; box-shadow: 0 0 0 0 transparent; transition: background-color .5s var(--fd-ease), box-shadow .5s var(--fd-ease); }
.fd-sheet__scan { position: absolute; left: 0; right: 0; top: 0; height: 64px; border-radius: 4px; background: linear-gradient(180deg, transparent, rgba(37, 99, 255, 0.1) 80%, rgba(37, 99, 255, 0.55) 98%, transparent); opacity: 0; transform: translateY(-64px); pointer-events: none; z-index: 1; }

/* Export table */
.fd-export__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--fd-line); font-size: 13px; color: var(--fd-ink); }
.fd-export__bar .fd-icon { color: var(--fd-green); }
.fd-export__bar span { margin-left: auto; font-size: 12px; color: var(--fd-muted); }
.fd-export__row { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 0.95fr) minmax(0, 0.8fr) 86px; gap: 8px; align-items: center; padding: 11px 14px; font-size: 13px; color: var(--fd-ink); border-bottom: 1px solid var(--fd-line); font-variant-numeric: tabular-nums; }
.fd-export__row:last-child { border-bottom: 0; }
.fd-export__row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-export__row--head { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fd-muted); background: var(--fd-soft); padding-block: 9px; }
.fd-export__row--new { background: var(--fd-blue-soft); transition: background-color .6s; }
.fd-export__row--new [data-cell] { clip-path: inset(0 0 0 0); transition: clip-path .55s var(--fd-ease); }
.fd-export__row--new [data-cell="number"] { transition-delay: .12s; }
.fd-export__row--new [data-cell="quantity"] { transition-delay: .24s; }
.fd-status { position: relative; display: block; height: 24px; }
.fd-status > span { position: absolute; inset: 0 auto 0 0; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 0 9px; white-space: nowrap; transition: opacity .35s, transform .45s var(--fd-ease); }
.fd-status__open { color: var(--fd-blue-ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--fd-blue); opacity: 0; transition: opacity .35s, transform .2s var(--fd-ease), background-color .2s; }
.fd-cursor { position: absolute; left: 44px; top: 12px; opacity: 0; transform: translate(40px, 34px); transition: transform .9s var(--fd-ease), opacity .4s; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(15, 31, 56, 0.25)); z-index: 2; }
.fd-hero__stage[data-phase="confirm"] .fd-cursor { opacity: 1; transform: none; }
.fd-hero__stage[data-phase="press"] .fd-cursor { opacity: 1; transform: scale(0.86); transition-duration: .15s; }
.fd-hero__stage[data-phase="press"] .fd-status__open { background: var(--fd-blue-soft); transform: scale(0.94); }
.fd-hero__stage[data-phase="check"] .fd-cursor { opacity: 0; transform: translate(10px, 14px); }
.fd-status__done { color: var(--fd-green); background: var(--fd-green-soft); }

/* Hero phases, set by JavaScript. Without it the final state ("done") stays. */
.fd-hero__stage:not([data-phase="done"]):not([data-phase="check"]) .fd-export__row--new .fd-status__open { opacity: 1; }
.fd-hero__stage:not([data-phase="done"]):not([data-phase="check"]) .fd-export__row--new .fd-status__done { opacity: 0; transform: scale(0.9); }
.fd-hero__stage[data-phase="idle"] .fd-export__row--new [data-cell],
.fd-hero__stage[data-phase="scan"] .fd-export__row--new [data-cell],
.fd-hero__stage[data-phase="mark"] .fd-export__row--new [data-cell] { clip-path: inset(0 100% 0 0); transition-duration: 0s; transition-delay: 0s; }
.fd-hero__stage[data-phase="mark"] .fd-mark,
.fd-hero__stage[data-phase="fill"] .fd-mark,
.fd-hero__stage[data-phase="confirm"] .fd-mark,
.fd-hero__stage[data-phase="press"] .fd-mark,
.fd-hero__stage[data-phase="check"] .fd-mark,
.fd-hero__stage[data-phase="done"] .fd-mark { background: var(--fd-blue-mark); box-shadow: 0 0 0 1.5px rgba(37, 99, 255, 0.55); }
.fd-hero__stage .fd-mark[data-field="number"] { transition-delay: .12s; }
.fd-hero__stage .fd-mark[data-field="date"] { transition-delay: .24s; }
.fd-hero__stage .fd-mark[data-field="quantity"] { transition-delay: .36s; }
.fd-hero__stage[data-phase="scan"] .fd-sheet__scan { animation: fd-scan 1.5s var(--fd-ease) forwards; }
.fd-hero__stage[data-phase="check"] .fd-export__row--new, .fd-hero__stage[data-phase="done"] .fd-export__row--new { background: #fff; }
@keyframes fd-scan { 0% { opacity: 0; transform: translateY(-64px); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--fd-scan-end, 380px)); } }

/* Everyday */
.fd-everyday { border-top: 1px solid var(--fd-line); }
.fd-everyday__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fd-everyday__body > p { font-size: 19px; }
.fd-everyday__body > p + p { margin-top: 14px; }
.fd .fd-everyday__turn { color: var(--fd-ink); font-weight: 600; }

/* How it works: sticky stage with three states */
.fd-how { background: var(--fd-soft); }
.fd-how__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.fd-how__stage { display: none; }
@media (min-width: 901px) {
  .fd-js .fd-how__stage { display: block; position: sticky; top: calc(var(--fd-top) + 96px); }
  .fd-js .fd-step__visual { display: none; }
  .fd-js .fd-step { min-height: 58vh; }
}
.fd-how__note { margin-top: 14px; font-size: 13px; color: var(--fd-muted); }
.fd-app { position: relative; display: grid; grid-template-rows: 48px auto; background: #fff; border: 1px solid var(--fd-line); border-radius: 20px; box-shadow: var(--fd-shadow-lift); overflow: hidden; }
.fd-app__bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--fd-line); font-size: 13px; color: var(--fd-ink); }
.fd-app__dots { display: flex; gap: 6px; }
.fd-app__dots i { width: 9px; height: 9px; border-radius: 50%; background: #dbe3ee; }
.fd-app__bar strong { font-family: var(--fd-heading); font-weight: 650; }
.fd-app__crumb { color: var(--fd-muted); }
.fd-app__crumb::before { content: "/"; margin-right: 12px; color: var(--fd-line-strong); }
.fd-panel { grid-row: 2; grid-column: 1; padding: 26px; display: flex; flex-direction: column; gap: 18px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease-out, transform .3s var(--fd-ease), visibility 0s .2s; }
[data-active="zeigen"] .fd-panel[data-panel="zeigen"],
[data-active="waehlen"] .fd-panel[data-panel="waehlen"],
[data-active="auslesen"] .fd-panel[data-panel="auslesen"] { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--fd-ease) .18s, transform .6s var(--fd-ease) .18s, visibility 0s 0s; }
.fd-panel--inline { opacity: 1; visibility: visible; transform: none; padding: 20px; }
.fd-step__visual { margin-top: 22px; background: #fff; border: 1px solid var(--fd-line); border-radius: 18px; box-shadow: var(--fd-shadow); overflow: hidden; }
.fd-panel__note { font-size: 13px; color: var(--fd-muted); }
.fd-app__button { align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: #fff; background: var(--fd-blue); border-radius: 10px; padding: 10px 16px; }
.fd-panel__title { font-size: 14px; font-weight: 650; color: var(--fd-ink); }

.fd-drop { position: relative; display: grid; place-items: center; gap: 14px; min-height: 170px; border: 1.5px dashed #a9c0ee; border-radius: 16px; background: var(--fd-blue-soft); padding: 20px; }
.fd-drop__file { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--fd-line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--fd-shadow); color: var(--fd-blue); transition: transform .8s var(--fd-ease) .15s, opacity .5s .15s; }
.fd-drop__file span { display: grid; }
.fd-drop__file strong { font-size: 13px; color: var(--fd-ink); }
.fd-drop__file small { font-size: 12px; color: var(--fd-muted); }
.fd-drop__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fd-blue-ink); }
.fd-field-input { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--fd-ink); }
.fd-typed { display: block; border: 1px solid var(--fd-line-strong); border-radius: 10px; padding: 11px 14px; font-weight: 500; color: var(--fd-text); background: #fff; overflow: hidden; white-space: nowrap; }
.fd-typed span { display: inline-block; clip-path: inset(0 0 0 0); transition: clip-path 1.4s steps(28, end) .7s; }

.fd-suggest { display: grid; gap: 8px; }
.fd-suggest li { display: grid; grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--fd-line); border-radius: 12px; font-size: 13px; background: #fff; transition: opacity .5s var(--fd-ease), transform .6s var(--fd-ease); transition-delay: calc(var(--i) * 80ms + 100ms); }
.fd-suggest li:not(.is-chosen) { background: #f8fafd; }
.fd-suggest li:not(.is-chosen) .fd-suggest__label { color: #5b6f86; }
.fd-suggest li:not(.is-chosen) .fd-suggest__value { color: #56687e; }
.fd-suggest li:not(.is-chosen) .fd-suggest__value { text-decoration: line-through; text-decoration-color: rgba(91, 111, 134, 0.5); }
.fd-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--fd-line-strong); color: #fff; }
.is-chosen .fd-check { background: var(--fd-blue); border-color: var(--fd-blue); }
.fd-suggest__label { font-weight: 650; color: var(--fd-ink); }
.fd-suggest__value { color: var(--fd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }

.fd-inbox { display: flex; gap: 10px; }
.fd-inbox__doc { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--fd-ink); background: var(--fd-paper); border: 1px solid #e6e1d6; border-radius: 10px; padding: 8px 12px; transition: opacity .5s var(--fd-ease), transform .6s var(--fd-ease); transition-delay: calc(var(--i) * 120ms + 100ms); }
.fd-inbox__doc .fd-icon { color: var(--fd-muted); }
.fd-mini-table { border: 1px solid var(--fd-line); border-radius: 12px; overflow: hidden; }
.fd-mini-table__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.8fr) 16px; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--fd-ink); border-bottom: 1px solid var(--fd-line); transition: opacity .5s var(--fd-ease), transform .6s var(--fd-ease); transition-delay: calc(var(--i) * 140ms + 420ms); font-variant-numeric: tabular-nums; }
.fd-mini-table__row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-mini-table__row:last-child { border-bottom: 0; }
.fd-ghost { position: absolute; z-index: 5; margin: -3px 0 0 -6px; padding: 3px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; pointer-events: none; will-change: transform; }
/* During the flight the list stays briefly visible; fields that were not chosen fade first. */
[data-fd-steps][data-flying] .fd-how__stage [data-panel="waehlen"] { opacity: 1; visibility: visible; transition: none; }
.fd-mini-table__row--head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fd-muted); background: var(--fd-soft); }
.fd-app__button--export { background: var(--fd-green); }

/* Entry motion inside a panel only while JavaScript steers the stage. */
.fd-js [data-fd-steps]:not([data-active="zeigen"]) .fd-how__stage [data-panel="zeigen"] .fd-drop__file { opacity: 0; transform: translateY(-28px); transition-duration: 0s; }
.fd-js [data-fd-steps]:not([data-active="zeigen"]) .fd-how__stage [data-panel="zeigen"] .fd-typed span { clip-path: inset(0 100% 0 0); transition-duration: 0s; }
.fd-js [data-fd-steps]:not([data-active="waehlen"]) .fd-how__stage .fd-suggest li { opacity: 0; transform: translateY(10px); transition-duration: 0s; }
.fd-js [data-fd-steps]:not([data-active="auslesen"]) .fd-how__stage .fd-inbox__doc { opacity: 0; transform: translateX(-16px); transition-duration: 0s; }
.fd-js [data-fd-steps]:not([data-active="auslesen"]) .fd-how__stage .fd-mini-table__row:not(.fd-mini-table__row--head) { opacity: 0; transform: translateY(8px); transition-duration: 0s; }

.fd-how__steps { counter-reset: none; }
.fd-step { padding-block: 32px; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--fd-line); }
.fd-step:first-child { border-top: 0; }
.fd-step__number { font-family: var(--fd-heading); font-size: 15px; font-weight: 700; color: var(--fd-blue); letter-spacing: 0.02em; }
.fd-step h3 { margin-top: 10px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.fd-step p { margin-top: 14px; font-size: 18px; max-width: 30em; }
.fd-mini-ok { color: var(--fd-green); }
@media (min-width: 901px) {
  .fd-js .fd-step h3, .fd-js .fd-step > p { transition: color .4s var(--fd-ease); }
  .fd-js .fd-step:not(.is-active) h3, .fd-js .fd-step:not(.is-active) > p, .fd-js .fd-step:not(.is-active) .fd-step__number { color: var(--fd-muted); }
}

/* Review */

/* Operations */
.fd-operations { background: var(--fd-soft); }
.fd-availability { position: absolute; top: clamp(28px, 3vw, 40px); right: clamp(28px, 3vw, 40px); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.fd-availability--heute { color: var(--fd-green); background: var(--fd-green-soft); }
.fd-availability--geplant { color: var(--fd-amber); background: var(--fd-amber-soft); }
.fd-price { margin-top: 28px; font-size: 17px; color: var(--fd-text); }
.fd-price strong { color: var(--fd-ink); }
.fd-support { display: flex; align-items: center; gap: 22px; margin-top: 20px; padding: clamp(24px, 3vw, 32px) clamp(28px, 3vw, 40px); background: #fff; border: 1px solid var(--fd-line); border-radius: 22px; }
.fd-support__faces { display: flex; flex: none; }
.fd-support__faces img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 3px solid #fff; box-shadow: 0 6px 16px -8px rgba(15, 31, 56, 0.4); }
.fd-support__faces img + img { margin-left: -14px; }
.fd-support p { margin-top: 6px; color: var(--fd-muted); }
.fd-support__contact { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fd .fd-support__contact a { font-weight: 650; color: var(--fd-blue-ink); text-decoration: none; }
.fd .fd-support__contact a:hover { text-decoration: underline; }
.fd-inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--fd-line); font-size: 17px; color: var(--fd-ink); font-weight: 600; }
.fd-limits { margin-top: 28px; display: grid; gap: 8px; font-size: 15px; color: var(--fd-muted); padding: 20px 22px; border-radius: 16px; background: var(--fd-soft); }
.fd .fd-state__lists .fd-limits h3 { padding: 0; border: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fd-muted); }

/* State */
.fd-state__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
.fd-state__head .fd-section__lead { margin-top: 0; }
.fd-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-block: 1px solid var(--fd-line); }
.fd-specs > div { display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 28px); }
.fd-specs > div + div { border-left: 1px solid var(--fd-line); }
.fd-specs dt { order: 2; font-family: var(--fd-heading); font-size: 17px; font-weight: 600; color: var(--fd-ink); }
.fd-specs__value { order: 1; font-family: var(--fd-heading); font-size: clamp(44px, 5vw, 68px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--fd-blue); font-variant-numeric: tabular-nums; }
.fd-specs__text { order: 3; font-size: 14.5px; color: var(--fd-muted); }
.fd-state__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 5vw, 64px); }
.fd-state__list { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--fd-line); border-radius: 24px; background: #fff; }
.fd-state__list--today { background: linear-gradient(180deg, #f3fbf6 0%, #fff 60%); border-color: #cfe6d7; }
.fd-state__lists h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-family: var(--fd-body); font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--fd-line); }
.fd-state__lists li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--fd-line); font-size: 16px; color: var(--fd-ink); }
.fd-state__lists li .fd-icon { color: var(--fd-green); margin-top: 4px; }
.fd-state__lists li .fd-dot { margin-top: 9px; }
.fd-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.fd-dot--heute { background: #16a34a; box-shadow: 0 0 0 4px var(--fd-green-soft); }
.fd-dot--geplant { background: #d97706; box-shadow: 0 0 0 4px var(--fd-amber-soft); }

/* FAQ */
.fd-faq { border-top: 1px solid var(--fd-line); }
.fd-faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.fd-faq__list { border-top: 1px solid var(--fd-line); }
.fd-question { border-bottom: 1px solid var(--fd-line); }
.fd-question summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--fd-heading); font-size: 19px; font-weight: 600; color: var(--fd-ink); cursor: pointer; list-style: none; }
.fd-question summary::-webkit-details-marker { display: none; }
.fd-question__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--fd-line-strong); }
.fd-question__icon::before, .fd-question__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--fd-ink); transform: translate(-50%, -50%); transition: transform .35s var(--fd-ease); }
.fd-question__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.fd-question[open] .fd-question__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.fd-question p { padding: 0 48px 24px 0; color: var(--fd-text); }

/* Close */
.fd-close { padding-block: 0 clamp(80px, 10vw, 140px); }
.fd-close__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 0; align-items: center; border-radius: 30px; background: linear-gradient(135deg, #f4f7ff 0%, #e9f0ff 100%); border: 1px solid #d6e2fb; overflow: clip; }
.fd-close__copy { position: relative; z-index: 1; padding: clamp(36px, 5vw, 72px); }
.fd-close__copy .fd-close__actions { margin-top: 30px; }
.fd-close__visual { align-self: stretch; position: relative; min-height: 320px; }
.fd-close__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); animation: fd-float 9s ease-in-out infinite; }
@keyframes fd-float { 50% { transform: translateY(-8px); } }
.fd-close__panel h2 { font-size: clamp(30px, 3.6vw, 46px); }
.fd-close__panel p { margin-top: 16px; font-size: 18px; max-width: 34em; }
.fd-close__actions { display: grid; gap: 16px; justify-items: start; }
.fd-close__note { font-size: 14px; color: var(--fd-muted); }
.fd-close__mail { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--fd-blue-ink); text-decoration: none; }
.fd-close__mail:hover { text-decoration: underline; }

/* Scroll reveal: only when JavaScript runs and motion is welcome. */
.fd-js [data-fd-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--fd-ease), transform .9s var(--fd-ease); }
.fd-js [data-fd-reveal].is-in { opacity: 1; transform: none; }

/* Layout breakpoints */
@media (max-width: 1080px) {
  .fd-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .fd-hero__stage { max-width: 680px; }
}
@media (max-width: 900px) {
  .fd-everyday__grid, .fd-how__grid, .fd-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .fd-panel { gap: 12px; }
  .fd-chapters { display: none; }
  .fd-drop { min-height: 120px; }
  .fd-suggest li { padding: 8px 10px; }
  .fd-state__head { grid-template-columns: minmax(0, 1fr); }
  .fd-state__head .fd-section__lead { margin-top: 18px; }
  .fd-close__panel { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .fd-close__visual { order: -1; min-height: 0; aspect-ratio: 3 / 2; }
  .fd-close__visual img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .fd-close__copy { padding-top: 0; }
  .fd-everyday__visual { aspect-ratio: 4 / 3; border-radius: 22px; }
}
@media (max-width: 640px) {
  .fd { font-size: 16px; }
  .fd-chapters__links { display: none; }
  .fd-chapters__inner { justify-content: space-between; }
  .fd-hero__visual { padding-bottom: 0; }
  .fd-hero__photo { width: 100%; border-radius: 24px; }
  .fd-export { position: relative; width: 94%; margin: -22% 0 0 auto; }
  .fd-export__row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) 96px; padding-inline: 12px; gap: 8px; }
  .fd-export__row > [data-cell="quantity"], .fd-export__row--head > span:nth-child(3) { display: none; }
  .fd-state__lists { grid-template-columns: minmax(0, 1fr); }
  .fd-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-specs > div:nth-child(3) { border-left: 0; }
  .fd-specs > div:nth-child(n + 3) { border-top: 1px solid var(--fd-line); }
  .fd-actions .fd-button { width: 100%; }
  .fd-question p { padding-right: 0; }
  .fd-section__lead, .fd-everyday__body > p { font-size: 17px; }
  .fd-panel--inline { padding: 16px; }
  .fd-panel--inline .fd-mini-table__row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.62fr) minmax(0, 0.9fr) 12px; gap: 6px; padding: 9px 10px; font-size: 12px; }
  .fd-panel--inline .fd-mini-table__row--head { font-size: 10px; }
  .fd-inbox__doc { padding: 6px 9px; font-size: 11px; white-space: nowrap; }
  .fd-support { flex-direction: column; align-items: flex-start; }
  .fd-inline-cta .fd-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fd *, .fd *::before, .fd *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .fd-js [data-fd-reveal] { opacity: 1; transform: none; }
}
@media print {
  .fd-chapters, .fd-how__stage, .fd-motion { display: none; }
  .fd-js [data-fd-reveal] { opacity: 1; transform: none; }
  .fd-step__visual { display: block !important; }
  .fd-step { min-height: 0; }
}

/* Column flight (step 2 → 3): keep the chosen rows while their labels lift off. */
.fd-js [data-fd-steps][data-flying] .fd-how__stage [data-panel="waehlen"] .fd-suggest li { opacity: 0.15; transform: none; }
.fd-js [data-fd-steps][data-flying] .fd-how__stage [data-panel="waehlen"] .fd-suggest li.is-chosen { opacity: 1; }
.fd-js [data-fd-steps][data-flying] .fd-how__stage [data-panel="waehlen"] .fd-suggest li.is-chosen .fd-suggest__label { opacity: 0; }

/* ---------- Comparison: typing vs. FluxDoc ---------- */
.fd-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: clamp(40px, 5vw, 64px); }
.fd-compare__col { border-radius: 22px; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--fd-line); }
.fd-compare__col--before { background: #fbfaf6; border-color: #ebe6da; }
.fd-compare__col--after { background: var(--fd-blue-soft); border-color: #cfdcfb; }
.fd-compare__col h3 { font-size: 15px; font-family: var(--fd-body); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fd-muted); }
.fd-compare__col--after h3 { color: var(--fd-blue-ink); }
.fd-compare ol { list-style: none; counter-reset: fd-step; display: grid; gap: 12px; margin-top: 18px; }
.fd-compare li { counter-increment: fd-step; display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--fd-ink); }
.fd-compare li::before { content: counter(fd-step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--fd-muted); background: #fff; border: 1px solid var(--fd-line-strong); }
.fd-compare__col--after li::before { color: #fff; background: var(--fd-blue); border-color: var(--fd-blue); }
.fd-compare__arrow { display: grid; place-items: center; align-self: center; width: 48px; height: 48px; border-radius: 50%; color: var(--fd-blue); background: #fff; box-shadow: var(--fd-shadow); }
.fd-everyday__visual { position: relative; margin: clamp(40px, 5vw, 64px) 0 0; aspect-ratio: 21 / 9; border-radius: 30px; overflow: hidden; background: #e9eef5; }
.fd-everyday__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.fd-everyday__visual figcaption { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 600; color: var(--fd-muted); background: rgba(255, 255, 255, 0.94); border-radius: 999px; padding: 5px 11px; }
.fd .fd-everyday__visual + .fd-compare { position: relative; margin-top: clamp(-150px, -10vw, -48px); padding-inline: clamp(12px, 3vw, 44px); }
.fd-everyday__visual + .fd-compare .fd-compare__col { box-shadow: var(--fd-shadow-lift); }
.fd-everyday__visual + .fd-compare .fd-compare__col--before { background: #fff; }

/* ---------- Click demo ---------- */
.fd-demo { position: relative; padding-top: clamp(40px, 5vw, 72px); background: linear-gradient(180deg, #f6f8fc 0%, #eef3fb 100%); overflow: clip; }
.fd-demo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(37, 99, 255, 0.12) 1px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.fd-demo .fd-wrap { position: relative; }
.fd-demo__head { max-width: 820px; }
@media (min-width: 1081px) {
  .fd .fd-section__head--split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 64px; align-items: end; max-width: none; }
  .fd-section__head--split .fd-kicker, .fd-section__head--split h2 { grid-column: 1; }
  .fd .fd-section__head--split .fd-section__lead { grid-column: 2; grid-row: 2; margin-top: 0; max-width: 30em; }
  /* App height: the panel scrolls inside, the footer with the next step stays in view. */
  .fd-demo__body { height: clamp(560px, calc(100vh - 210px), 720px); min-height: 0; }
  .fd-demo__work, .fd-demo__panel { min-height: 0; }
  .fd-demo__original { overflow-y: auto; }
  .fd-demo__view { overflow-y: auto; }
}
.fd-demo__app { position: relative; background: #fff; border: 1px solid #d9e3f2; border-radius: 26px; box-shadow: 0 2px 6px rgba(15, 31, 56, 0.05), 0 40px 90px -40px rgba(15, 31, 56, 0.4); overflow: clip; }
.fd-demo__bar { display: flex; align-items: center; gap: 20px; min-height: 60px; padding: 10px 22px; border-bottom: 1px solid var(--fd-line); background: #fff; }
.fd-demo__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fd-heading); font-weight: 700; font-size: 16px; color: var(--fd-ink); }
.fd-demo__logo { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #2563ff, #1a4fd6); box-shadow: inset 0 -6px 0 rgba(255, 255, 255, 0.18); }
.fd-demo__steps { display: flex; gap: 6px; margin: 0 auto; }
.fd-demo__steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--fd-muted); transition: background-color .3s, color .3s; }
.fd-demo__steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; background: var(--fd-soft); border: 1px solid var(--fd-line-strong); transition: background-color .3s, color .3s, border-color .3s; }
.fd-demo__steps li[aria-current="step"] { color: var(--fd-blue-ink); background: var(--fd-blue-soft); }
.fd-demo__steps li[aria-current="step"] span { color: #fff; background: var(--fd-blue); border-color: var(--fd-blue); }
.fd-demo__steps li[data-done] { color: var(--fd-green); }
.fd-demo__steps li[data-done] span { color: #fff; background: #16a34a; border-color: #16a34a; }
.fd-demo__badge { font-size: 12px; font-weight: 700; color: var(--fd-amber); background: var(--fd-amber-soft); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }

.fd-demo__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 620px; }
.fd-demo__types { display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: #f8fafd; border-right: 1px solid var(--fd-line); }
.fd-demo__types-title { padding: 0 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fd-muted); }
.fd-demo__type { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; width: 100%; text-align: left; padding: 11px 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--fd-text); font: inherit; cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .3s var(--fd-ease); }
.fd-demo__type .fd-icon { grid-row: span 2; color: var(--fd-muted); }
.fd-demo__type-name { font-size: 14.5px; font-weight: 650; color: var(--fd-ink); }
.fd-demo__type-state { font-size: 12px; color: var(--fd-muted); }
.fd-demo__type:hover { background: #fff; border-color: var(--fd-line); }
.fd-demo__type[aria-selected="true"] { background: #fff; border-color: #cfdcfb; box-shadow: 0 6px 16px -10px rgba(37, 99, 255, 0.5), inset 3px 0 0 var(--fd-blue); }
.fd-demo__type[aria-selected="true"] .fd-icon { color: var(--fd-blue); }
.fd-demo__type[data-phase="geprueft"] .fd-demo__type-state, .fd-demo__type[data-phase="exportiert"] .fd-demo__type-state { color: var(--fd-green); font-weight: 650; }
.fd-demo__type[data-phase="pruefen"] .fd-demo__type-state { color: var(--fd-amber); font-weight: 650; }
.fd-demo__type[data-phase="lesen"] .fd-demo__type-state { color: var(--fd-blue-ink); font-weight: 650; }
.fd-demo__type-name::after { content: ""; display: none; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; vertical-align: 2px; background: currentColor; }
.fd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.fd-demo__work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); min-width: 0; }
.fd-demo__switch { display: none; }
.fd-demo__original { padding: 26px clamp(20px, 3vw, 40px); background: #eef2f8; display: flex; justify-content: center; align-items: flex-start; }
.fd-demo__doc { width: 100%; max-width: 460px; margin: 0; }
.fd-demo__doc[hidden] { display: none; }
.fd-demo__file { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--fd-muted); }
.fd .fd-sheet--demo { font-size: 13.5px; padding: 28px; background: #fff url("/images/fluxdoc/papier-720.webp") center / cover; border-color: #e1e5ec; border-radius: 6px; box-shadow: 0 1px 1px rgba(15, 31, 56, 0.06), 0 22px 40px -22px rgba(15, 31, 56, 0.35); }
.fd-sheet--demo::before { display: none; }
.fd-sheet__hand { display: inline-block; vertical-align: middle; margin: -6px 0; padding: 2px 6px; border-radius: 8px; }
.fd-sheet__hand img { display: block; height: 34px; width: auto; transform: rotate(-2deg); }
.fd-sheet__hand.is-flash, .fd-sheet--demo .fd-mark.is-flash { animation: fd-flash 1.3s var(--fd-ease); }
@keyframes fd-page-flash { 30% { box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.35), 0 22px 40px -22px rgba(15, 31, 56, 0.35); } }
.fd .fd-sheet--demo.is-flash { animation: fd-page-flash 1.3s var(--fd-ease); }
@keyframes fd-flash { 30% { background-color: rgba(37, 99, 255, 0.16); box-shadow: 0 0 0 6px rgba(37, 99, 255, 0.16); } }
.fd-sheet--demo .fd-mark { transition: background-color .4s var(--fd-ease), box-shadow .4s var(--fd-ease); }
.fd-sheet--demo .fd-mark[data-state="gefunden"], .fd-sheet--demo .fd-mark[data-state="geaendert"], .fd-sheet--demo .fd-mark[data-state="ok"] { background: var(--fd-blue-mark); box-shadow: 0 0 0 1.5px rgba(37, 99, 255, 0.5); }
.fd-sheet--demo .fd-mark[data-state="unklar"] { background: rgba(217, 119, 6, 0.14); box-shadow: 0 0 0 1.5px rgba(217, 119, 6, 0.7); }
.fd-sheet--demo .fd-mark.is-focus { box-shadow: 0 0 0 2px var(--fd-blue), 0 0 0 6px rgba(37, 99, 255, 0.16); }
.fd-sheet--demo .fd-mark[data-state="unklar"].is-focus { box-shadow: 0 0 0 2px #d97706, 0 0 0 6px rgba(217, 119, 6, 0.18); }
.fd-sheet__note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed #d8d1c2; font-size: 11px; color: #6b7686; }
.fd-demo__doc[data-phase="lesen"] .fd-sheet__scan { animation: fd-demo-scan 1.5s var(--fd-ease) infinite; }
@keyframes fd-demo-scan { 0% { opacity: 0; transform: translateY(-64px); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(520px); } }

.fd-demo__panel { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--fd-line); background: #fff; }
.fd-demo__view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.fd-demo__panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--fd-line); }
.fd-demo__panel-head h3 { font-size: 18px; letter-spacing: -0.01em; outline: none; }
.fd [data-panel-title]:focus { outline: none; }
.fd-nowrap { white-space: nowrap; }
.fd-demo__panel :is(input, button, a) { scroll-margin-top: 16px; scroll-margin-bottom: 120px; }
.fd-demo__panel-head p { margin-top: 2px; font-size: 13px; color: var(--fd-muted); }
.fd-demo__fields { display: grid; gap: 4px; padding: 12px 14px; flex: 1; align-content: start; }
.fd-demo__field { padding: 10px 10px 8px; border-radius: 12px; transition: background-color .25s; }
.fd-demo__field:hover, .fd-demo__field:focus-within { background: var(--fd-soft); }
.fd-demo__field[data-state="unklar"] { background: #fffaf2; box-shadow: inset 3px 0 0 #d97706; }
.fd-demo__field[data-state="geaendert"] { box-shadow: inset 3px 0 0 var(--fd-blue); }
.fd-demo__field-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.fd-demo__field-top label { font-size: 13px; font-weight: 650; color: var(--fd-ink); }
.fd-demo__field-static { display: block; font-size: 14px; color: var(--fd-text); }
.fd-demo__field[data-state="fehlt"] .fd-demo__field-top label, .fd-demo__field[data-state="ok"] .fd-demo__field-top label { color: var(--fd-text); }
.fd-demo__flag { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--fd-amber); }
.fd-demo__flag[hidden] { display: none; }
.fd .fd-demo__src { display: inline-flex; align-items: center; gap: 4px; flex: none; font: 600 12px/1 var(--fd-body); color: var(--fd-blue-ink); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 5px 7px; cursor: pointer; }
.fd .fd-demo__src:hover { background: var(--fd-blue-soft); border-color: #cfdcfb; }
.fd-demo__flag + .fd-demo__src { margin-left: 0; }
.fd-demo__field-top label + .fd-demo__src { margin-left: auto; }
.fd .fd-demo__src--none { color: var(--fd-muted); cursor: default; font-weight: 600; font-size: 12px; padding: 5px 7px; }
.fd-demo__quote { margin-top: 6px; font-size: 13px; font-style: italic; color: var(--fd-text); }
.fd-demo__second { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 7px; font-size: 13px; color: var(--fd-amber); }
.fd-demo__second b { color: var(--fd-ink); }
.fd .fd-demo__link { font: 650 13px/1.2 var(--fd-body); color: var(--fd-blue-ink); background: none; border: 0; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fd-demo__sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 7px; font-size: 12.5px; color: var(--fd-muted); }
.fd-demo__sub label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; min-height: 28px; }
.fd-demo__sub input { width: 16px; height: 16px; accent-color: var(--fd-blue); }
.fd-demo__changed { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.fd-demo__changed-tag { font-weight: 700; color: var(--fd-blue-ink); }
.fd-demo__error { margin-top: 6px; font-size: 13px; font-weight: 600; color: #b42318; }
.fd-demo__error:empty { display: none; }
.fd-demo__view > .fd-demo__error { margin: 0 22px; }
.fd .fd-demo__input { width: 100%; font: 500 14.5px/1.3 var(--fd-body); color: var(--fd-ink); background: #fff; border: 1px solid var(--fd-line-strong); border-radius: 10px; padding: 9px 12px; font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s; }
.fd .fd-demo__input:focus { outline: none; border-color: var(--fd-blue); box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.18); }
.fd .fd-demo__input[readonly] { background: var(--fd-soft); border-color: transparent; }
.fd .fd-demo__input:disabled { background: #f4f6f9; border-style: dashed; color: var(--fd-muted); }
.fd .fd-demo__input:disabled::placeholder { color: #6b7686; opacity: 1; }
.fd .fd-demo__input[aria-invalid="true"] { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12); }
.fd-demo__field.is-waiting .fd-demo__input { color: transparent; background: linear-gradient(90deg, #eef2f8 0%, #f8faff 50%, #eef2f8 100%) 0 0 / 200% 100%; border-color: transparent; animation: fd-demo-wait 1.2s linear infinite; }
.fd-demo__field.is-waiting .fd-demo__src, .fd-demo__field.is-waiting .fd-demo__flag { visibility: hidden; }
@keyframes fd-demo-wait { to { background-position: -200% 0; } }
.fd-demo__empty { flex: 1; display: grid; align-content: start; justify-items: start; gap: 18px; padding: 36px 26px 28px; }
.fd-demo__empty-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fd-blue-ink); }
.fd .fd-demo__empty-title { font: 650 22px/1.2 var(--fd-heading); letter-spacing: -0.02em; color: var(--fd-ink); }
.fd-demo__empty > p { font-size: 15px; color: var(--fd-text); }
.fd .fd-demo__empty .fd-demo__primary { font-size: 15px; padding: 14px 20px; min-height: 50px; }
.fd-demo__preview { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-demo__preview li { font-size: 12.5px; font-weight: 600; color: var(--fd-blue-ink); background: var(--fd-blue-soft); border-radius: 8px; padding: 5px 9px; }
.fd-demo__footer { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -12px 24px -18px rgba(15, 31, 56, 0.3); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--fd-line); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); }
.fd-demo__status { flex: 1 1 10em; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--fd-muted); }
.fd-demo__status .fd-demo__link { font-size: 12.5px; padding: 0; }
.fd-demo__actions { display: flex; flex: none; gap: 8px; margin-left: auto; }
.fd .fd-demo__primary { display: inline-flex; align-items: center; gap: 8px; font: 650 14px/1 var(--fd-body); color: #fff; background: var(--fd-blue); border: 0; border-radius: 11px; padding: 12px 16px; min-height: 44px; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(37, 99, 255, 0.8); transition: background-color .2s, transform .2s var(--fd-ease); }
.fd .fd-demo__primary:hover { background: var(--fd-blue-ink); transform: translateY(-1px); }
.fd .fd-demo__primary[aria-disabled="true"] { background: #9db4ee; box-shadow: none; transform: none; cursor: not-allowed; }
.fd .fd-demo__ghost:disabled, .fd .fd-demo__icon-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.fd a.fd-demo__ghost { text-decoration: none; }
.fd .fd-demo__ghost { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--fd-body); color: var(--fd-ink); background: #fff; border: 1px solid var(--fd-line-strong); border-radius: 10px; padding: 9px 12px; min-height: 40px; cursor: pointer; white-space: nowrap; transition: border-color .2s; }
.fd .fd-demo__ghost:hover { border-color: var(--fd-ink); }
.fd-demo__hint { padding: 14px 22px 0; font-size: 13.5px; color: var(--fd-muted); }
.fd-demo__setup { display: grid; gap: 8px; padding: 14px 22px; }
.fd-demo__setup li { display: flex; gap: 8px; align-items: center; }
.fd .fd-demo__icon-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--fd-line-strong); background: #fff; color: var(--fd-muted); cursor: pointer; }
.fd .fd-demo__icon-btn:hover { color: #b42318; border-color: #f1b5ad; }
.fd-demo__subhead { padding: 6px 22px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fd-muted); }
.fd-demo__extras { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 8px; }
.fd .fd-demo__add { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--fd-body); color: var(--fd-blue-ink); background: var(--fd-blue-soft); border: 1px dashed #9fb7f2; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.fd-demo__own { display: grid; gap: 6px; padding: 12px 22px 16px; }
.fd-demo__own label { font-size: 13px; font-weight: 650; color: var(--fd-ink); }
.fd-demo__own-row { display: flex; gap: 8px; }
.fd-demo__rows { margin: 14px 18px 0; border: 1px solid var(--fd-line); border-radius: 12px; overflow: hidden; }
.fd-demo__rows div { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 12px; padding: 9px 14px; border-top: 1px solid var(--fd-line); font-size: 13.5px; }
.fd-demo__rows div:first-child { border-top: 0; background: var(--fd-soft); }
.fd-demo__rows dt { color: var(--fd-muted); font-weight: 600; }
.fd-demo__rows dd { color: var(--fd-ink); font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fd-demo__done { flex: 1; display: grid; align-content: center; justify-items: start; gap: 14px; padding: 28px 26px; }
.fd-demo__done > p { font-size: 15px; }
.fd-demo__done-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: #16a34a; box-shadow: 0 10px 24px -10px rgba(22, 163, 74, 0.7); }
.fd-demo__done-icon svg { width: 24px; height: 24px; stroke-width: 2.4; }
.fd-demo__done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fd-demo__filecard { display: flex; align-items: center; gap: 12px; margin: 16px 18px 0; padding: 12px 14px; border: 1px solid #cfe6d7; background: #f3fbf6; border-radius: 12px; }
.fd-demo__filecard-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: #16a34a; font: 700 11px/1 var(--fd-body); letter-spacing: 0.04em; }
.fd-demo__filecard strong { display: block; font-size: 14px; color: var(--fd-ink); }
.fd-demo__filecard div span { font-size: 12.5px; color: var(--fd-muted); }
.fd-demo__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fd-demo__nojs { padding: 0 22px 20px; font-size: 13px; color: var(--fd-muted); }
.fd-demo__app.is-live .fd-demo__nojs { display: none; }
.fd-demo__note { margin-top: 16px; font-size: 13px; color: var(--fd-muted); text-align: center; }

@media (max-width: 1080px) {
  .fd-demo__body { grid-template-columns: 180px minmax(0, 1fr); }
  .fd-demo__work { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
  .fd-demo__badge { display: none; }
}
@media (max-width: 900px) {
  .fd-compare { grid-template-columns: minmax(0, 1fr); }
  .fd-compare__arrow { transform: rotate(90deg); }
  .fd-demo__bar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .fd-demo__steps { margin: 0; order: 3; width: 100%; justify-content: space-between; }
  .fd-demo__steps li { padding-right: 8px; font-size: 12px; }
  .fd-demo__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .fd-demo__types { flex-direction: row; gap: 6px; padding: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--fd-line); scrollbar-width: none; }
  .fd-demo__types-title { display: none; }
  .fd-demo__type { flex: 1 1 0; min-width: 0; width: auto; padding: 9px 6px; text-align: center; grid-template-columns: minmax(0, 1fr); }
  .fd-demo__type-name { font-size: 13.5px; }
  .fd-demo__type .fd-icon { display: none; }
  .fd-demo__type-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fd-demo__type { position: relative; }
  .fd-demo__type[aria-selected="true"] { box-shadow: 0 6px 16px -10px rgba(37, 99, 255, 0.5), inset 0 -3px 0 var(--fd-blue); }
  .fd-demo__type:not([data-phase="bereit"]) .fd-demo__type-name::after { display: inline-block; }
  .fd-demo__type[data-phase="lesen"] .fd-demo__type-name::after { color: var(--fd-blue); }
  .fd-demo__type[data-phase="pruefen"] .fd-demo__type-name::after { color: #d97706; }
  .fd-demo__type[data-phase="geprueft"] .fd-demo__type-name::after, .fd-demo__type[data-phase="exportiert"] .fd-demo__type-name::after { color: #16a34a; }
  .fd-sheet__hand img { height: 28px; }
  .fd-demo__panel-head { flex-wrap: wrap; }
  .fd-demo__panel-head > div { flex: 1 1 12em; }
  .fd-demo__work { grid-template-columns: minmax(0, 1fr); }
  .fd-demo__app.is-live .fd-demo__switch { display: flex; gap: 4px; margin: 10px 12px 0; padding: 4px; background: var(--fd-soft); border-radius: 12px; }
  .fd .fd-demo__switch button { flex: 1; font: 650 13px/1 var(--fd-body); color: var(--fd-muted); background: transparent; border: 0; border-radius: 9px; padding: 10px; min-height: 40px; cursor: pointer; }
  .fd .fd-demo__switch button[aria-pressed="true"] { color: var(--fd-ink); background: #fff; box-shadow: 0 2px 6px rgba(15, 31, 56, 0.12); }
  .fd-demo__app.is-live[data-view="angaben"] .fd-demo__original { display: none; }
  .fd-demo__app.is-live[data-view="original"] .fd-demo__panel { display: none; }
  .fd-demo__original { padding: 16px 12px; }
  .fd-demo__panel { border-left: 0; }
  .fd-sheet--demo { padding: 20px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-demo__doc[data-phase="lesen"] .fd-sheet__scan, .fd-demo__field.is-waiting .fd-demo__input { animation: none; }
}

/* ---------- Control: bento with small product views ---------- */
.fd-bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.fd-bento__card { display: flex; flex-direction: column; border: 1px solid var(--fd-line); border-radius: 28px; background: #fff; overflow: clip; box-shadow: 0 1px 2px rgba(15, 31, 56, 0.04); transition: box-shadow .4s var(--fd-ease), transform .4s var(--fd-ease); }
.fd-bento__card:hover { box-shadow: var(--fd-shadow); transform: translateY(-2px); }
.fd-bento__card--wide { grid-column: 1 / -1; flex-direction: row; }
.fd-bento__card--wide .fd-bento__visual { flex: 1.35; border-bottom: 0; border-right: 1px solid var(--fd-line); padding-block: clamp(32px, 4vw, 52px); }
.fd-bento__card--wide .fd-bento__text { flex: 1; align-self: center; padding: clamp(28px, 4vw, 56px); }
.fd-bento__card--wide .fd-bento__text h3 { font-size: clamp(24px, 2.4vw, 32px); }
.fd-bento__card--wide .fd-bento__text p { font-size: 17px; }
.fd-bento__visual { position: relative; flex: 1; display: grid; place-items: center; padding: clamp(24px, 3vw, 40px); background: linear-gradient(180deg, #f1f5fd 0%, #f8faff 100%); border-bottom: 1px solid var(--fd-line); min-height: 220px; }
.fd-bento__text { padding: clamp(22px, 2.6vw, 32px); }
.fd-bento__text h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; }
.fd-bento__text p { margin-top: 10px; color: var(--fd-muted); font-size: 16px; max-width: 34em; }
.fd-bento__note { margin-top: 14px; font-size: 13px; color: var(--fd-muted); text-align: right; }

.fd-proof { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; align-items: center; max-width: 560px; width: 100%; }
.fd-proof__fields { position: relative; z-index: 1; margin-left: -28px; }
.fd-proof__sender { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1.5px solid #1b2433; }
.fd-proof__sender .fd-sheet__logo { grid-row: span 2; width: 28px; height: 28px; border-radius: 7px; }
.fd-proof__sender strong { font-size: 13.5px; }
.fd-proof__sender small { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6b7686; }
.fd-proof__meta { display: flex; gap: 22px; }
.fd-proof__meta dt { font-size: 10.5px; color: #6b7686; }
.fd-proof__meta dd { font-weight: 650; }
.fd-proof__item { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e8e3d8; font-size: 12.5px; }
.fd-proof__hand { display: grid; gap: 2px; padding-top: 6px; border-top: 1px dashed #d8d1c2; }
.fd-proof__hand small { font-size: 10.5px; color: #6b7686; }
.fd-proof__paper { display: grid; align-content: start; gap: 12px; padding: 24px 22px; width: 100%; background: #fff url("/images/fluxdoc/papier-720.webp") center / cover; border: 1px solid #e1e5ec; border-radius: 6px; box-shadow: 0 20px 36px -24px rgba(15, 31, 56, 0.4); transform: rotate(-1.5deg); font-size: 13px; color: #1b2433; }
.fd-proof__mark { justify-self: start; font-weight: 700; background: var(--fd-blue-mark); color: inherit; border-radius: 5px; padding: 2px 6px; box-shadow: 0 0 0 1.5px rgba(37, 99, 255, 0.55); }
.fd-proof__paper img { width: 140px; height: auto; margin-top: -4px; }
.fd-proof__fields { display: grid; gap: 12px; }
.fd-proof__field { display: grid; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--fd-line); border-radius: 14px; box-shadow: 0 10px 24px -18px rgba(15, 31, 56, 0.35); }
.fd-proof__field--unklar { background: #fffaf2; border-color: #f3d7ab; box-shadow: inset 3px 0 0 #d97706, 0 10px 24px -18px rgba(15, 31, 56, 0.35); }
.fd-proof__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--fd-ink); }
.fd-proof__top em, .fd-proof__top b { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 11.5px; font-weight: 700; }
.fd-proof__top em { color: var(--fd-blue-ink); }
.fd-proof__top b { color: var(--fd-amber); }
.fd-proof__value { font-size: 15px; font-weight: 600; color: var(--fd-ink); padding: 7px 10px; border: 1px solid var(--fd-line-strong); border-radius: 9px; background: #fff; font-variant-numeric: tabular-nums; }
.fd-proof__field small { font-size: 12px; color: var(--fd-muted); }
.fd-proof__field small b { color: var(--fd-ink); }

.fd-queue { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.fd-queue__row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border: 1px solid var(--fd-line); border-radius: 12px; font-size: 13px; color: var(--fd-ink); }
.fd-queue__row > .fd-icon { color: var(--fd-muted); flex: none; }
.fd-queue__row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-queue__row b { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11.5px; border-radius: 999px; padding: 3px 9px; }
.fd-queue__ok { color: var(--fd-green); background: var(--fd-green-soft); }
.fd-queue__open { color: var(--fd-amber); background: var(--fd-amber-soft); }
.fd-queue__export { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 11px 14px; border-radius: 12px; font-size: 13px; font-weight: 650; color: #fff; background: var(--fd-blue); box-shadow: 0 10px 22px -12px rgba(37, 99, 255, 0.8); }

.fd-version { display: grid; justify-items: stretch; align-content: center; gap: 12px; }
.fd-version__kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fd-blue-ink); }
.fd-version__diff { display: grid; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--fd-line); border-radius: 14px; font-size: 13px; }
.fd-version__diff strong { color: var(--fd-ink); font-size: 13.5px; }
.fd-version__before { color: #9a3412; background: #fff1ec; border-radius: 7px; padding: 5px 8px; text-decoration: line-through; text-decoration-color: rgba(154, 52, 18, 0.45); }
.fd-version__after { color: var(--fd-green); background: var(--fd-green-soft); border-radius: 7px; padding: 5px 8px; font-weight: 600; }
.fd-version__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-version__actions span { font-size: 12.5px; font-weight: 650; border-radius: 10px; padding: 9px 12px; border: 1px solid var(--fd-line-strong); background: #fff; color: var(--fd-ink); }
.fd-version__actions span + span { color: #fff; background: var(--fd-blue); border-color: var(--fd-blue); }

/* ---------- Server and price: where the documents go ---------- */
.fd-flow { margin-top: clamp(36px, 5vw, 56px); padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: #fff; border: 1px solid var(--fd-line); box-shadow: var(--fd-shadow); }
.fd-flow__title { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; color: var(--fd-ink); }
.fd .fd-flow__title .fd-availability { position: static; }
.fd-flow__nodes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(88px, 0.42fr) minmax(0, 1.12fr) minmax(88px, 0.42fr) minmax(0, 1fr); align-items: stretch; margin-top: 24px; }
.fd-flow__node { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: 20px; background: var(--fd-soft); border: 1px solid var(--fd-line); }
.fd-flow__node--main { background: linear-gradient(160deg, #eef3ff 0%, #f7f9ff 100%); border-color: #cfdcfb; box-shadow: 0 18px 40px -26px rgba(37, 99, 255, 0.55); }
.fd-flow__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--fd-blue); background: #fff; border: 1px solid var(--fd-line); }
.fd-flow__node h3 { margin-top: 6px; font-size: 18px; letter-spacing: -0.01em; }
.fd-flow__node p { font-size: 14.5px; color: var(--fd-muted); }
.fd-flow__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 6px; font-size: 12px; font-weight: 650; text-align: center; }
.fd-flow__there { color: var(--fd-blue-ink); }
.fd-flow__back { color: var(--fd-green); }
.fd-flow__track { position: relative; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, #b8c9ee 0 6px, transparent 6px 11px); }
.fd-flow__track 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(37, 99, 255, 0.16); animation: fd-flow-x 2.8s var(--fd-ease) infinite; }
@keyframes fd-flow-x { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes fd-flow-y { 0% { top: 0; left: -3px; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 8px); left: -3px; opacity: 0; } }
.fd-planned { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 22px; border: 1px dashed #e8c9a0; border-radius: 18px; background: #fffdf8; }
.fd .fd-planned .fd-availability { position: static; flex: none; }
.fd-planned p { font-size: 15.5px; color: var(--fd-text); }
.fd-planned strong { color: var(--fd-ink); }

/* ---------- Hero entrance: photo and table arrive once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fd-js .fd-hero__photo { animation: fd-arrive 1.1s var(--fd-ease) backwards; }
  .fd-js .fd-export { animation: fd-arrive-card 1.2s .35s var(--fd-ease) backwards; }
}
@keyframes fd-arrive { from { opacity: 0; transform: translateY(28px) scale(.985); } }
@keyframes fd-arrive-card { from { opacity: 0; transform: translate(-18px, 26px); } }
@media (max-width: 640px) {
  .fd-proof { grid-template-columns: minmax(0, 1fr); }
  .fd-proof__paper { transform: rotate(-1deg); }
  .fd-proof__fields { margin: -18px 10px 0; }
  .fd-flow { padding: 18px; }
  .fd-planned { flex-direction: column; align-items: flex-start; }
}
.fd-proof__item span:last-child { flex: none; white-space: nowrap; }

/* Small screens for the bento and the flow (after their base rules). */
@media (max-width: 900px) {
  .fd-bento { grid-template-columns: minmax(0, 1fr); }
  .fd-bento__card--wide { grid-column: auto; flex-direction: column; }
  .fd-bento__card--wide .fd-bento__visual { flex: none; border-right: 0; border-bottom: 1px solid var(--fd-line); }
  .fd-bento__card--wide .fd-bento__text { flex: none; }
  .fd-flow__nodes { grid-template-columns: minmax(0, 1fr); }
  .fd-flow__link { flex-direction: row; justify-content: center; gap: 14px; min-height: 72px; }
  .fd-flow__there, .fd-flow__back { flex: 1; }
  .fd-flow__there { text-align: right; }
  .fd-flow__back { text-align: left; }
  .fd-flow__track { flex: none; width: 2px; height: 48px; background: repeating-linear-gradient(180deg, #b8c9ee 0 6px, transparent 6px 11px); }
  .fd-flow__track i { animation-name: fd-flow-y; }
}

/* Motion switch: all loops pause with "Animation anhalten". */
.fd-still .fd-flow__track i, .fd-still .fd-close__visual img { animation-play-state: paused; }

@media (max-width: 640px) {
  .fd .fd-everyday__visual + .fd-compare { margin-top: 20px; padding-inline: 0; }
  .fd-export__row > [data-cell="sender"] { white-space: normal; }
  .fd-demo__done-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .fd .fd-demo__done-actions > * { justify-content: center; white-space: normal; text-align: center; line-height: 1.3; }
}
