/* Lab J Fragrance Intelligence · Duftnotenrad: Kopffilm, Radbühne, Filmkapitel (Designsystem-Variablen aus design.css) */
.fi-wheel-page { --fi-line: rgba(232, 221, 201, .14); --fi-soft: rgba(232, 221, 201, .68); --fi-gold: var(--ds-gold-strong, #e8cf8f); --fi-ease: cubic-bezier(.2, .7, .2, 1); }
html:not([lang="en"]) .fi-wheel-page .lj-en, html[lang="en"] .fi-wheel-page .lj-de { display: none; }

/* Kopffilm über die volle Breite, wie die Kopffilme der Duftfamilien; nur unten und links leicht abgedunkelt */
html body .fi-wheel-page > .fi-hero { position: relative; isolation: isolate; overflow: hidden; width: 100vw; max-width: none; min-height: min(78svh, 820px); margin: 0 0 clamp(36px, 5vw, 72px) calc(50% - 50vw); padding: clamp(120px, 16vw, 220px) max(var(--gutter, 20px), calc(50vw - var(--maxw, 1480px) / 2)) clamp(40px, 6vw, 84px); display: flex; flex-direction: column; justify-content: flex-end; background: #0e0f12 url("img/fi-molecules-hero-poster.webp") center / cover no-repeat; }
.fi-hero-film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.fi-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(14,15,18,0) 40%, rgba(14,15,18,.55) 78%, rgba(14,15,18,.96) 100%), linear-gradient(90deg, rgba(14,15,18,.55) 0%, rgba(14,15,18,0) 58%); }
.fi-hero-in { position: relative; max-width: 64ch; text-shadow: 0 1px 18px rgba(0,0,0,.5); animation: fi-rise 1.1s var(--fi-ease) both; }
.fi-kicker { margin: 0 0 14px; color: var(--fi-gold); font: 500 var(--ds-fs-label, 13px)/1.2 var(--ds-font-text, Inter, sans-serif); letter-spacing: .22em; text-transform: uppercase; }
html body .fi-hero .page-title { margin: 0 0 18px; font-family: var(--ds-font-serif, 'Instrument Serif', Georgia, serif); font-weight: 400; font-size: clamp(46px, 7vw, 104px); line-height: .98; letter-spacing: -.02em; text-transform: none; }
html body .fi-hero .page-sub { max-width: 52ch; margin: 0; color: rgba(242,237,227,.9); font-size: var(--ds-fs-lead, 20px); line-height: var(--ds-lh-lead, 1.55); }
.fi-hero-cta, .fi-chapter-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 26px; color: var(--ds-text, #eee8dd); font: 500 var(--ds-fs-control, 15px)/1 var(--ds-font-text, Inter, sans-serif); text-decoration: none; }
.fi-hero-cta::after, .fi-chapter-link::after { content: '→'; color: var(--fi-gold); transition: transform var(--ds-dur-fast, 200ms) var(--fi-ease); }
.fi-hero-cta:hover::after, .fi-chapter-link:hover::after { transform: translateX(4px); }
.fi-hero-cta:focus-visible, .fi-chapter-link:focus-visible { outline: 2px solid var(--fi-gold); outline-offset: 4px; }
.fi-film-ui { position: absolute; z-index: 4; right: max(var(--gutter, 20px), calc(50vw - var(--maxw, 1480px) / 2)); bottom: 18px; display: flex; align-items: center; gap: 12px; }
.fi-film-ai { font: 500 var(--ds-fs-label, 13px)/1.2 var(--ds-font-text, Inter, sans-serif); color: var(--ds-text-2, #c9c2b5); pointer-events: none; }
html body .fi-film-ui .ai-label { background-image: url("img/ai/ai-generated-white.svg"); }
/* dezenter Filmknopf: nur Symbol, Beschriftung für Assistenztechnik */
html body .fi-film-ui .film-play--fi { position: static; width: 40px; min-height: 40px; height: 40px; padding: 0; justify-content: center; opacity: .72; transition: opacity var(--ds-dur-fast, 200ms) ease, border-color var(--ds-dur-fast, 200ms) ease; }
html body .fi-film-ui .film-play--fi:hover, html body .fi-film-ui .film-play--fi:focus-visible { opacity: 1; }
html body .film-play--fi .film-play-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bühne des Rads: breiter als die Textspalte, die Grafik steht im Mittelpunkt */
/* Leseanleitung über dem Rad: einfache Zeichenerklärung und Bedienung */
.fi-guide { max-width: 1240px; margin: 0 0 clamp(48px, 6vw, 84px); scroll-margin-top: calc(var(--lj-head, 84px) + 12px); }
.fi-guide-title, .fi-stage-title { margin: 0 0 12px; font: 400 clamp(34px, 4.4vw, 60px)/1.02 var(--ds-font-serif, 'Instrument Serif', Georgia, serif); letter-spacing: -.015em; }
.fi-guide-lead { max-width: 60ch; margin: 0 0 28px; color: var(--ds-text-2, #c9c2b5); font-size: var(--ds-fs-lead, 20px); line-height: var(--ds-lh-lead, 1.55); }
.fi-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 26px; margin: 0; padding: 0; list-style: none; }
.fi-key li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 0; border-top: 1px solid var(--fi-line); }
.fi-key-ic { display: block; flex: none; width: 56px; height: 56px; }
.fi-key b { display: block; margin-bottom: 4px; color: var(--ds-text, #eee8dd); font: 600 17px/1.3 var(--ds-font-head, 'Inter Tight', sans-serif); }
.fi-key li div > span { color: var(--fi-soft); font-size: 16px; line-height: 1.55; }
.fi-howto { margin-top: 26px; padding: 22px 24px; border: 1px solid var(--fi-line); border-radius: var(--ds-radius, 18px); background: rgba(255,255,255,.022); }
.fi-howto h3 { margin: 0 0 12px; color: var(--fi-gold); font: 600 13px/1.2 var(--ds-font-text, Inter, sans-serif); letter-spacing: .14em; text-transform: uppercase; }
.fi-howto ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fi-howto li { color: var(--ds-text-2, #c9c2b5); font-size: 17px; line-height: 1.55; }
.fi-howto li b { color: var(--ds-text, #eee8dd); font-weight: 600; }
.fi-guide-note { max-width: 70ch; margin: 18px 0 0; color: var(--fi-soft); font-size: 15px; line-height: 1.6; }
.fi-stage-title { margin-top: clamp(48px, 6vw, 84px); }
.fi-stage { position: relative; width: min(100vw - 2 * var(--gutter, 20px), 1400px); margin: 0 0 0 50%; transform: translateX(-50%); scroll-margin-top: calc(var(--lj-head, 84px) + 12px); }
.fi-controls { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(130px, 1fr)); gap: 12px 14px; margin: 0 0 12px; padding: 16px 18px; border: 1px solid var(--fi-line); border-radius: var(--ds-radius, 18px); background: rgba(255,255,255,.022); }
.fi-controls label { display: grid; gap: 7px; min-width: 0; color: var(--fi-soft); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.fi-controls select, .fi-controls input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--fi-line); border-radius: 10px; background: rgba(14,15,18,.85); color: var(--ds-text, #eee8dd); font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; transition: border-color var(--ds-dur-fast, 200ms) ease; }
.fi-controls select:hover, .fi-controls input:hover { border-color: rgba(232,207,143,.38); }
.fi-controls :focus-visible, .fi-wheel-page button:focus-visible, .fi-wheel-page summary:focus-visible, .fi-wheel-svg [tabindex]:focus-visible { outline: 2px solid var(--fi-gold); outline-offset: 3px; }
.fi-wheel-hint { margin: 0 2px 4px; color: var(--fi-soft); font-size: 15px; line-height: 1.5; }
.fi-wheel-status { min-height: 1.5em; margin: 0 2px 12px; color: var(--fi-soft); font-size: 14px; }
.fi-wheel-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); align-items: start; gap: 22px; }
.fi-wheel-visual { position: relative; isolation: isolate; min-width: 0; overflow: hidden; border: 1px solid var(--fi-line); border-radius: var(--ds-radius-l, 24px); background: radial-gradient(60% 55% at 50% 48%, rgba(236,212,154,.06), rgba(236,212,154,0) 70%), #101114; box-shadow: 0 30px 90px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.035); }
.fi-wheel-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 18px 0; color: var(--fi-soft); font-size: 13px; }
.fi-back { min-height: 40px; padding: 6px 14px; border: 1px solid rgba(232,207,143,.45); border-radius: var(--ds-radius-pill, 999px); background: rgba(14,15,18,.7); color: var(--ds-text, #eee8dd); cursor: pointer; font: 500 14px/1 var(--ds-font-text, Inter, sans-serif); transition: border-color var(--ds-dur-fast, 200ms) ease, background var(--ds-dur-fast, 200ms) ease; }
.fi-back:hover { border-color: var(--fi-gold); background: rgba(232,207,143,.08); }
.fi-wheel-svg { display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; transform-origin: 50% 50%; -webkit-tap-highlight-color: transparent; }
.fi-wheel-guide { fill: none; stroke: rgba(232,221,201,.08); stroke-width: 1; }
.fi-chord { stroke-dasharray: 1; stroke-linecap: round; mix-blend-mode: screen; pointer-events: stroke; cursor: pointer; transition: opacity .45s var(--fi-ease), stroke-width .3s var(--fi-ease); }
.fi-chord.is-related { stroke: var(--fi-gold); filter: url(#fi-glow); }
.fi-chord.is-muted { opacity: .05 !important; }
.fi-note-node { cursor: pointer; outline: none; transition: opacity .45s var(--fi-ease); }
.fi-note-hit { fill: transparent; }
.fi-note-arc { stroke-width: var(--w, 10px); stroke-linecap: butt; stroke-dasharray: 1; transition: stroke-width .4s var(--fi-ease), stroke .3s ease, filter .3s ease; }
.fi-note-bar { stroke-linecap: round; opacity: .55; transition: opacity .3s ease; }
.fi-label { fill: var(--ds-text, #eee8dd); font-family: var(--ds-font-text, Inter, sans-serif); font-weight: 500; letter-spacing: .01em; paint-order: stroke; stroke: rgba(16,17,20,.85); stroke-width: 3px; stroke-linejoin: round; transform-box: fill-box; transform-origin: 0% 50%; transition: transform .45s var(--fi-ease), fill .3s ease; pointer-events: none; }
.fi-label.is-flip { transform-origin: 100% 50%; }
.fi-note-node:hover .fi-label, .fi-note-node.is-hover .fi-label, .fi-note-node:focus-visible .fi-label { fill: #fff; }
.fi-note-node:hover .fi-note-bar, .fi-note-node.is-hover .fi-note-bar, .fi-note-node.is-related .fi-note-bar { opacity: .95; }
.fi-note-node.is-selected .fi-note-arc { stroke: var(--fi-gold); stroke-width: calc(var(--w, 10px) * 1.9); filter: url(#fi-glow); }
.fi-note-node.is-selected .fi-note-bar { stroke: var(--fi-gold); opacity: 1; }
.fi-note-node.is-selected .fi-label { fill: var(--fi-gold); font-family: var(--ds-font-head, 'Inter Tight', sans-serif); font-weight: 600; transform: scale(1.22); }
.fi-note-node.is-muted { opacity: .22; }
.fi-note-node:focus-visible .fi-note-arc { stroke: var(--fi-gold); }
.fi-wheel-center { fill: var(--ds-text, #eee8dd); text-anchor: middle; font-family: var(--ds-font-serif, 'Instrument Serif', Georgia, serif); font-weight: 400; letter-spacing: -.01em; }
.fi-wheel-center-small { fill: var(--fi-soft); text-anchor: middle; font: 500 11px var(--ds-font-text, Inter, sans-serif); letter-spacing: .14em; text-transform: uppercase; }
.fi-wheel-svg.has-focus .fi-wheel-center { fill: var(--fi-gold); }
.fi-wheel-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 18px 18px; color: var(--fi-soft); font-size: 13px; }
.fi-wheel-legend strong { margin-right: 6px; color: var(--ds-text, #eee8dd); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.fi-wheel-legend button, .fi-wheel-legend span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 10px; border: 1px solid transparent; border-radius: var(--ds-radius-pill, 999px); background: transparent; color: var(--fi-soft); font: inherit; }
.fi-wheel-legend button { cursor: pointer; transition: border-color var(--ds-dur-fast, 200ms) ease, color var(--ds-dur-fast, 200ms) ease; }
.fi-wheel-legend button:hover { border-color: var(--fi-line); color: var(--ds-text, #eee8dd); }
.fi-wheel-legend i, .fi-detail-family span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--fi-family); box-shadow: 0 0 8px var(--fi-family); }
.fi-detail-family { display: inline-flex; align-items: center; gap: 8px; }

/* Aufbau beim Laden: Ring zeichnet sich, Balken wachsen, Beschriftungen blenden ein, Verbindungen ziehen sich nach */
.fi-wheel-svg.is-intro .fi-note-arc { animation: fi-draw .9s var(--fi-ease) both; animation-delay: calc(var(--i, 0) * 14ms); }
.fi-wheel-svg.is-intro .fi-note-bar { animation: fi-fade .7s var(--fi-ease) both; animation-delay: calc(240ms + var(--i, 0) * 14ms); }
.fi-wheel-svg.is-intro .fi-label { animation: fi-label .8s var(--fi-ease) both; animation-delay: calc(300ms + var(--i, 0) * 16ms); }
.fi-wheel-svg.is-intro .fi-chord { animation: fi-draw 1s var(--fi-ease) both; animation-delay: calc(480ms + var(--i, 0) * 1.5ms); }
.fi-wheel-svg.is-intro .fi-center { animation: fi-fade 1s var(--fi-ease) both; animation-delay: 200ms; }
@keyframes fi-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fi-fade { from { opacity: 0; } }
@keyframes fi-label { from { opacity: 0; } }
@keyframes fi-rise { from { opacity: 0; transform: translateY(18px); } }

.fi-wheel-detail { position: sticky; top: calc(var(--lj-head, 84px) + 16px); padding: 22px; border: 1px solid var(--fi-line); border-radius: var(--ds-radius, 18px); background: rgba(255,255,255,.025); }
.fi-wheel-detail h2 { margin: 0 0 12px; font: 500 clamp(24px, 2.4vw, 32px)/1.1 var(--ds-font-head, 'Inter Tight', sans-serif); overflow-wrap: anywhere; }
.fi-wheel-detail h3 { margin: 22px 0 9px; color: var(--fi-soft); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.fi-wheel-detail p { color: var(--fi-soft); line-height: 1.55; }
.fi-detail-view { margin: 0 0 14px; }
.fi-open { min-height: 44px; padding: 8px 16px; border: 1px solid rgba(232,207,143,.5); border-radius: var(--ds-radius-pill, 999px); background: rgba(232,207,143,.08); color: var(--ds-text, #eee8dd); cursor: pointer; font: 500 15px/1.2 var(--ds-font-text, Inter, sans-serif); text-align: left; }
.fi-open:hover { border-color: var(--fi-gold); }
.fi-wheel-detail ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.fi-wheel-detail li { padding-left: 3px; color: var(--fi-soft); }
.fi-wheel-detail li button { min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--ds-text, #eee8dd); text-align: left; cursor: pointer; font: inherit; }
.fi-wheel-detail li span { display: block; margin-top: 2px; font-size: 12px; }
.fi-retry { min-height: 42px; margin: 0 18px 18px; padding: 8px 13px; border: 1px solid var(--ds-gold-line, rgba(210,183,127,.4)); border-radius: 9px; background: transparent; color: var(--ds-text, #eee8dd); cursor: pointer; font: inherit; }
.fi-wheel-visual > p[role="alert"] { padding: 18px; }
.fi-wheel-index { margin-top: 20px; border-top: 1px solid var(--fi-line); border-bottom: 1px solid var(--fi-line); }
.fi-wheel-index summary { padding: 15px 2px; cursor: pointer; color: var(--ds-text, #eee8dd); }
.fi-wheel-index ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px 16px; max-height: 420px; overflow: auto; padding: 0 4px 16px; list-style: none; }
.fi-wheel-index button { display: flex; width: 100%; min-height: 40px; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ds-text, #eee8dd); text-align: left; font: inherit; cursor: pointer; }
.fi-wheel-index button:hover, .fi-wheel-index button[aria-pressed="true"] { border-color: var(--fi-line); background: rgba(255,255,255,.04); }
.fi-wheel-index button b { color: var(--fi-gold); font-variant-numeric: tabular-nums; }

/* Drei Filmkapitel über die volle Breite: Verbindungen, Duftfamilien, Duftprofile */
.fi-chapters { max-width: none; display: grid; gap: 0; width: 100vw; margin: 0 0 0 calc(50% - 50vw); }
.fi-chapters--after { margin-top: clamp(56px, 8vw, 110px); }
.fi-chapter + .fi-chapter { border-top: 1px solid rgba(232,221,201,.08); }
.fi-chapter { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(62svh, 640px); padding: clamp(32px, 6vw, 90px) max(var(--gutter, 20px), calc(50vw - var(--maxw, 1480px) / 2)); background: #0e0f12 center / cover no-repeat; }
.fi-chapter-film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: opacity .6s ease; }
.fi-chapter-film.fi-seg-wait { opacity: 0; }
.fi-chapter::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(14,15,18,.82) 0%, rgba(14,15,18,.35) 42%, rgba(14,15,18,0) 70%), linear-gradient(180deg, rgba(14,15,18,0) 60%, rgba(14,15,18,.5) 100%); }
.fi-chapter--right { justify-content: flex-end; }
.fi-chapter--right::after { background: linear-gradient(270deg, rgba(14,15,18,.82) 0%, rgba(14,15,18,.35) 42%, rgba(14,15,18,0) 70%), linear-gradient(180deg, rgba(14,15,18,0) 60%, rgba(14,15,18,.5) 100%); }
.fi-chapter-in { max-width: 46ch; text-shadow: 0 1px 16px rgba(0,0,0,.55); }
.fi-chapter-title { margin: 0 0 16px; font: 400 clamp(38px, 5vw, 72px)/1 var(--ds-font-serif, 'Instrument Serif', Georgia, serif); letter-spacing: -.015em; }
.fi-chapter-in p { margin: 0; color: rgba(242,237,227,.88); font-size: var(--ds-fs-text, 18px); line-height: var(--ds-lh-text, 1.65); }
.fi-chapter .fi-film-ui { bottom: 16px; }
.fi-wheel-method { border-bottom: 1px solid var(--fi-line); }
.fi-wheel-method summary { padding: 15px 2px; cursor: pointer; color: var(--ds-text, #eee8dd); }
.fi-wheel-method p { max-width: 900px; margin: 0 2px 18px; color: var(--fi-soft); font-size: 15px; line-height: 1.6; }

@media (max-width: 1100px) {
  .fi-wheel-layout { grid-template-columns: minmax(0, 1fr); }
  .fi-wheel-detail { position: static; }
  .fi-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fi-controls .fi-search { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  html body .fi-wheel-page > .fi-hero { min-height: 70svh; padding-top: 120px; padding-bottom: 64px; }
  html body .fi-hero .page-title { font-size: clamp(42px, 12vw, 56px); }
  html body .fi-hero .page-sub { font-size: var(--ds-fs-text, 17.5px); }
  .fi-stage { width: calc(100vw - 2 * var(--gutter, 16px)); }
  .fi-controls { gap: 10px; padding: 14px; }
  .fi-wheel-meta { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 12px 0; font-size: 12px; }
  .fi-wheel-legend { padding: 4px 10px 14px; }
  .fi-wheel-detail { padding: 16px; }
  .fi-wheel-index ul { grid-template-columns: 1fr; }
  .fi-label { stroke-width: 2.4px; }
  .fi-wheel-center-small { font-size: 9px; letter-spacing: .1em; }
  .fi-note-node.is-selected .fi-label { transform: scale(1.06); }
  .fi-key li { grid-template-columns: 44px 1fr; gap: 12px; }
  .fi-key-ic { width: 44px; height: 44px; }
  .fi-howto { padding: 18px; }
  .fi-chapter, .fi-chapter--right { min-height: 70svh; align-items: flex-end; justify-content: flex-start; padding-bottom: 76px; }
  .fi-chapter::after, .fi-chapter--right::after { background: linear-gradient(180deg, rgba(14,15,18,0) 25%, rgba(14,15,18,.6) 62%, rgba(14,15,18,.92) 100%); }
  .fi-chapter-film { object-position: 50% 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .fi-hero-in, .fi-wheel-svg.is-intro .fi-note-arc, .fi-wheel-svg.is-intro .fi-note-bar, .fi-wheel-svg.is-intro .fi-label, .fi-wheel-svg.is-intro .fi-chord, .fi-wheel-svg.is-intro .fi-center { animation: none; }
  .fi-chord, .fi-note-node, .fi-note-arc, .fi-label, .fi-note-bar { transition: none; }
}
