/* ring-hero: home hero "Mensch · Maschine · Daten" (Three.js ring, js/ring.js).
   Guided tour + hotspots: see the block at the end (js/ring-tour.js).
   States on .c-ring-hero (set by js/ring.js):
     (none)        no JS: static picture + theme cards
     .is-enhancing JS running, WebGL loading (picture hidden, pills shown)
     .is-3d        canvas live
     .is-fallback  no WebGL / prefers-reduced-motion: static picture + cards, dossiers open as panel
     .is-open      dossier open */
.c-ring-hero {
  --ring-bg-1: #E8EDE4; --ring-bg-2: #DCE5D8; --ring-bg-3: #E9E1CF;
  --ring-ink: #0B140C; --ring-ink-muted: #46513f;
  --ring-glass: rgba(250, 250, 244, .58); --ring-glass-line: rgba(255, 255, 255, .75);
  --ring-green: #6f9a3a; --ring-data: #7FD39C; --ring-accent: #E3B85C;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, 100svh, 1040px);
  /* sits under the (translucent white) sticky header so the sage tone shines through it */
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(40px, 6vh, 88px)) 0 clamp(48px, 8vh, 112px);
  display: flex; align-items: center;
  color: var(--ring-ink);
  background:
    radial-gradient(60% 70% at 66% 50%, rgba(246, 245, 237, .6), rgba(246, 245, 237, 0) 70%),
    linear-gradient(160deg, var(--ring-bg-1) 0%, var(--ring-bg-2) 48%, var(--ring-bg-3) 100%);
}
.c-ring-hero__stage { position: absolute; inset: 0; z-index: -1; }
.c-ring-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); touch-action: pan-y; }
.c-ring-hero.is-3d .c-ring-hero__canvas { opacity: 1; }
.c-ring-hero.is-3d.is-hovering .c-ring-hero__canvas { cursor: pointer; }
.c-ring-hero__fallback { position: absolute; top: 50%; right: max(var(--gutter), calc(50% - 640px)); width: min(46%, 640px, calc(100% - 2 * var(--header-h))); height: auto; aspect-ratio: 1; object-fit: cover; transform: translateY(-46%);
  border-radius: 50%; -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); }
.c-ring-hero.is-enhancing .c-ring-hero__fallback, .c-ring-hero.is-3d .c-ring-hero__fallback { opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }

.c-ring-hero__inner { position: relative; pointer-events: none; }
.c-ring-hero__content { max-width: 560px; pointer-events: auto; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
.c-ring-hero .c-eyebrow { color: var(--ring-ink-muted); }
.c-ring-hero__headline { font-size: clamp(40px, 5.2vw, 80px); line-height: var(--lh-tight); letter-spacing: -0.035em; font-weight: var(--fw-light); color: var(--ring-ink); margin: 0 0 var(--space-3); max-width: 12ch; }
.c-ring-hero__text { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ring-ink-muted); max-width: 34rem; }
.c-ring-hero__text > :last-child { margin-bottom: 0; }
.c-ring-hero__btn2 { background: rgba(255, 255, 255, .45); color: var(--ring-ink); border-color: rgba(11, 20, 12, .18); }
.c-ring-hero__btn2:hover { background: rgba(255, 255, 255, .8); color: var(--ring-ink); border-color: rgba(11, 20, 12, .35); }
@supports (backdrop-filter: blur(4px)) { .c-ring-hero__btn2 { backdrop-filter: blur(10px); } }

/* theme buttons: cards (fallback / no JS) or glass pills (3D) */
.c-ring-hero__themes { margin-top: clamp(28px, 5vh, 48px); }
.c-ring-hero.is-3d .c-ring-hero__themes, .c-ring-hero.is-enhancing .c-ring-hero__themes, .c-ring-hero.is-fallback .c-ring-hero__themes { margin-top: clamp(18px, 3vh, 28px); }
.c-ring-hero__themes-label { margin: 0 0 12px; font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ring-ink-muted); }
.c-ring-hero__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.c-ring-card { margin: 0; }
.c-ring-card__btn { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; height: 100%; padding: 16px 16px 14px; text-align: left; font: inherit; color: var(--ring-ink);
  background: var(--ring-glass); border: 1px solid var(--ring-glass-line); border-radius: 14px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 30px -18px rgba(35, 50, 30, .4);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
@supports (backdrop-filter: blur(4px)) { .c-ring-card__btn { backdrop-filter: blur(14px) saturate(1.3); } }
.c-ring-card__btn:hover, .c-ring-card.is-hot .c-ring-card__btn { background: rgba(255, 255, 255, .82); border-color: #fff; transform: translateY(-2px); }
.c-ring-card__btn[aria-expanded="true"] { background: #fff; border-color: var(--ring-ink); }
.c-ring-card__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.c-ring-card__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ring-green); box-shadow: 0 0 0 3px rgba(111, 154, 58, .18); }
.c-ring-card--maschine .c-ring-card__dot { background: linear-gradient(135deg, #fff, #c9d2c2); box-shadow: 0 0 0 1px rgba(11,20,12,.25), 0 0 0 4px rgba(255,255,255,.5); }
.c-ring-card--daten .c-ring-card__dot { background: var(--ring-data); box-shadow: 0 0 0 3px rgba(227, 184, 92, .35), 0 0 10px rgba(127, 211, 156, .9); }
.c-ring-card__label { font-size: 17px; font-weight: var(--fw-medium); letter-spacing: -0.01em; }
.c-ring-card__teaser { font-size: 13.5px; line-height: 1.45; color: var(--ring-ink-muted); }
.c-ring-card__more { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: var(--fw-medium); color: var(--color-secondary); }
.c-ring-card__more::after { content: " \2192"; }
/* with JS (3D + fallback): quiet segment labels (dot + word), no button look - the two actions above stay the only CTAs */
.c-ring-hero.is-enhancing .c-ring-hero__cards, .c-ring-hero.is-3d .c-ring-hero__cards, .c-ring-hero.is-fallback .c-ring-hero__cards { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.c-ring-hero.is-enhancing .c-ring-card__btn, .c-ring-hero.is-3d .c-ring-card__btn, .c-ring-hero.is-fallback .c-ring-card__btn { flex-direction: row; align-items: center; gap: 8px; padding: 6px 2px; background: none; border: 0; border-radius: 4px; box-shadow: none; backdrop-filter: none; color: var(--ring-ink-muted); transform: none; }
.c-ring-hero.is-enhancing .c-ring-card__teaser, .c-ring-hero.is-3d .c-ring-card__teaser, .c-ring-hero.is-fallback .c-ring-card__teaser,
.c-ring-hero.is-enhancing .c-ring-card__more, .c-ring-hero.is-3d .c-ring-card__more, .c-ring-hero.is-fallback .c-ring-card__more { display: none; }
.c-ring-hero.is-enhancing .c-ring-card__label, .c-ring-hero.is-3d .c-ring-card__label, .c-ring-hero.is-fallback .c-ring-card__label { font-size: 14px; font-weight: var(--fw-regular); letter-spacing: .01em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
.c-ring-hero.is-3d .c-ring-card__btn:hover, .c-ring-hero.is-3d .c-ring-card.is-hot .c-ring-card__btn, .c-ring-hero.is-fallback .c-ring-card__btn:hover,
.c-ring-hero.is-3d .c-ring-card__btn[aria-expanded="true"], .c-ring-hero.is-fallback .c-ring-card__btn[aria-expanded="true"] { background: none; color: var(--ring-ink); transform: none; }
.c-ring-hero .c-ring-card__btn:hover .c-ring-card__label, .c-ring-hero .c-ring-card.is-hot .c-ring-card__label, .c-ring-hero .c-ring-card__btn[aria-expanded="true"] .c-ring-card__label { text-decoration-color: currentColor; }
.c-ring-hero.is-enhancing .c-ring-card__dot, .c-ring-hero.is-3d .c-ring-card__dot, .c-ring-hero.is-fallback .c-ring-card__dot { width: 7px; height: 7px; }

/* hover label in the scene */
.c-ring-hero__label { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 1px; padding: 9px 14px 8px; border-radius: 12px; pointer-events: none; white-space: nowrap;
  background: rgba(251, 251, 246, .74); border: 1px solid rgba(255, 255, 255, .85); color: var(--ring-ink); box-shadow: 0 16px 30px -18px rgba(30, 45, 25, .45);
  opacity: 0; transform: translate(-50%, -50%) scale(.94); transition: opacity .25s var(--ease), transform .3s var(--ease); will-change: transform; }
@supports (backdrop-filter: blur(4px)) { .c-ring-hero__label { backdrop-filter: blur(12px) saturate(1.4); } }
.c-ring-hero__label span { font-size: 16px; font-weight: var(--fw-medium); letter-spacing: -0.01em; }
.c-ring-hero__label small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-secondary); }
.c-ring-hero__label.is-visible { opacity: 1; }

/* dossier panel */
.c-ring-dossier { position: absolute; z-index: 5; top: calc(var(--header-h) + 24px); bottom: 24px; right: max(var(--gutter), calc(50% - 640px)); width: min(440px, 42vw); max-height: 760px; overflow: hidden;
  display: flex; flex-direction: column; color: var(--ring-ink);
  background: rgba(249, 249, 243, .7); border: 1px solid rgba(255, 255, 255, .8); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 40px 80px -40px rgba(30, 45, 25, .5);
  opacity: 0; transform: translate3d(24px, 0, 0) scale(.98); transition: opacity .45s var(--ease), transform .55s var(--ease); }
@supports (backdrop-filter: blur(4px)) { .c-ring-dossier { background: rgba(246, 246, 238, .52); backdrop-filter: blur(24px) saturate(1.4); } }
.c-ring-dossier[hidden] { display: none; }
.c-ring-dossier.is-visible { opacity: 1; transform: none; }
.c-ring-dossier__scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 26px 22px 28px 28px; margin-right: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(63, 107, 66, .5) transparent; overflow-wrap: break-word; }
.c-ring-dossier__scroll * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.c-ring-dossier__scroll::-webkit-scrollbar { width: 10px; height: 0; }
.c-ring-dossier__scroll::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
.c-ring-dossier__scroll::-webkit-scrollbar-thumb { background: rgba(111, 154, 58, .42); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.c-ring-dossier__scroll::-webkit-scrollbar-thumb:hover { background-color: rgba(63, 107, 66, .7); }
.c-ring-dossier__scroll::-webkit-scrollbar-corner { background: transparent; }
.c-ring-dossier .c-btn { white-space: normal; text-align: center; }
.c-ring-dossier__close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(11, 20, 12, .14); background: rgba(255, 255, 255, .7); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, transform .3s var(--ease); }
.c-ring-dossier__close:hover { background: #fff; transform: rotate(90deg); }
.c-ring-dossier__close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.c-ring-dossier__close span, .c-ring-dossier__close span::before { display: block; width: 16px; height: 1.5px; background: var(--ring-ink); transform: rotate(45deg); }
.c-ring-dossier__close span::before { content: ""; transform: rotate(90deg); }
.c-ring-dossier__kicker { margin: 0 48px 10px 0; font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--color-secondary); }
.c-ring-dossier__headline { margin: 0 40px 14px 0; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.15; letter-spacing: -0.025em; font-weight: var(--fw-regular); color: var(--ring-ink); }
.c-ring-dossier__headline:focus { outline: none; }
.c-ring-dossier__body { font-size: 15px; line-height: 1.55; color: #24302a; }
.c-ring-dossier__body p { margin: 0 0 .7em; }
.c-ring-dossier__body ul { padding-left: 1.1em; }
.c-ring-dossier__more { margin: 2px 0 0; }
.c-ring-dossier__more > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: var(--fw-medium); color: var(--color-secondary); }
.c-ring-dossier__more > summary::-webkit-details-marker { display: none; }
.c-ring-dossier__more > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.c-ring-dossier__more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.c-ring-dossier__more > summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 3px; }
.c-ring-dossier__more > div { margin-top: 10px; }
.c-ring-dossier__facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(11, 20, 12, .1); }
.c-ring-dossier__fact { display: grid; grid-template-columns: minmax(0, 5.4em) minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(11, 20, 12, .1); }
.c-ring-dossier__fact-value { grid-row: span 2; font-size: 22px; line-height: 1.1; font-weight: var(--fw-light); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.c-ring-dossier__fact-label { font-size: 13px; line-height: 1.4; color: var(--ring-ink-muted); }
.c-ring-dossier__fact-source { font-size: 11px; color: #5f6858; }
.c-ring-dossier__fact-source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.c-ring-dossier__points { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(11, 20, 12, .1); }
.c-ring-dossier__points li { padding: 9px 0 9px 22px; border-bottom: 1px solid rgba(11, 20, 12, .1); font-size: 14px; line-height: 1.5; position: relative; }
.c-ring-dossier__points li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--color-secondary); }
.c-ring-dossier__points strong { display: block; font-weight: var(--fw-medium); }
.c-ring-dossier__points span { color: var(--ring-ink-muted); }
.c-ring-dossier__links { margin-top: 16px; }
.c-ring-dossier__links-title { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ring-ink-muted); }
.c-ring-dossier__links ul { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; padding: 0; list-style: none; }
.c-ring-dossier__links a { display: inline-block; padding: 3px 0; font-size: 14.5px; color: var(--ring-ink); text-decoration: underline; text-decoration-color: rgba(63, 107, 66, .5); text-underline-offset: 4px; }
.c-ring-dossier__links a:hover { text-decoration-color: var(--color-secondary); }
.c-ring-dossier__cta { margin: 20px 0 0; }

/* open: copy steps aside for the zoomed ring + panel */
.c-ring-hero.is-3d.is-open .c-ring-hero__content { opacity: 0; transform: translate3d(-24px, 0, 0); visibility: hidden; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.c-ring-hero.is-fallback.is-open .c-ring-hero__fallback { opacity: .35; }

@media (max-width: 1024px) {
  .c-ring-hero__content { max-width: 480px; }
  .c-ring-hero__fallback { width: 48%; }
  .c-ring-dossier { width: min(440px, 52vw); }
}
@media (max-width: 767px) {
  .c-ring-hero { display: block; min-height: 0; padding: var(--header-h) 0 48px; }
  .c-ring-hero__stage { position: relative; inset: auto; z-index: 0; height: min(108vw, 480px); }
  .c-ring-hero__canvas { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .c-ring-hero__fallback { position: absolute; inset: 0; margin: auto; width: auto; height: 100%; max-width: 100%; right: auto; top: 0; transform: none; }
  .c-ring-hero__content { max-width: none; }
  .c-ring-hero__headline { font-size: clamp(36px, 10.5vw, 48px); }
  .c-ring-hero__cards { grid-template-columns: 1fr; }
  .c-ring-hero.is-3d.is-open .c-ring-hero__content { opacity: .25; visibility: visible; transform: none; }
  .c-ring-dossier { position: fixed; z-index: 60; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 64svh; border-radius: 22px 22px 0 0; transform: translate3d(0, 40px, 0); }
  .c-ring-dossier::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(11, 20, 12, .18); }
  .c-ring-dossier__scroll { padding: 28px 16px calc(26px + env(safe-area-inset-bottom)) 20px; margin-right: 4px; }
  .c-ring-dossier__scroll::-webkit-scrollbar { width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-ring-hero__canvas, .c-ring-dossier, .c-ring-hero__content, .c-ring-card__btn, .c-ring-hero__label { transition: none; }
}
.c-ring-dossier__sources { margin-top: 18px; font-size: 12.5px; color: #4d5747; }
.c-ring-dossier__sources summary { cursor: pointer; font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.c-ring-dossier__sources ul { margin: 8px 0 0; padding: 0 0 0 16px; }
.c-ring-dossier__sources li { margin: 0 0 6px; line-height: 1.45; }
.c-ring-dossier__sources a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ guided tour (js/ring-tour.js, English UI on purpose)
   States on .c-ring-hero: .is-touring (player visible), .is-tour-paused, .is-tour-ended, .is-tour-loading */
.c-ring-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.c-ring-tour__start[hidden] { display: none; }
.c-ring-tour__start { gap: 12px; padding-left: 9px; border-radius: var(--radius-pill); font-weight: var(--fw-medium); }
.c-ring-tour__start:focus-visible, .c-ring-hero__btn2:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.c-ring-tour__start-icon { position: relative; width: 30px; height: 30px; margin: -6px 0; border-radius: 50%; background: #F3F5EE; flex: none; }
.c-ring-tour__start-icon::before { content: ""; position: absolute; left: 12px; top: 9px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--ring-ink); }
.c-ring-tour__start-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(243, 245, 238, .5); animation: ring-tour-halo 2.8s var(--ease) infinite; }
@keyframes ring-tour-halo { 0% { transform: scale(.85); opacity: .9; } 70%, 100% { transform: scale(1.3); opacity: 0; } }
.c-ring-tour__start-time { font-size: 13px; font-weight: var(--fw-regular); opacity: .7; font-variant-numeric: tabular-nums; }
.c-ring-tour__start-time:empty { display: none; }
.c-ring-hero__btn2 { border-radius: var(--radius-pill); }
/* no tour available: the strategy call becomes the primary action */
.c-ring-tour__start[hidden] + .c-ring-hero__btn2 { background: var(--color-dark); color: var(--color-primary-contrast); border-color: transparent; backdrop-filter: none; }

/* while touring: the hero copy makes room for the player (theme buttons stay as chapter shortcuts) */
.c-ring-hero.is-touring .c-ring-hero__content > .c-eyebrow,
.c-ring-hero.is-touring .c-ring-hero__headline,
.c-ring-hero.is-touring .c-ring-hero__text,
.c-ring-hero.is-touring .c-ring-hero__content > .c-actions { display: none; }
.c-ring-hero.is-touring .c-ring-hero__themes { margin-top: 14px; }

.c-ring-player { position: relative; max-width: 520px; padding: 22px 22px 16px; color: var(--ring-ink);
  background: rgba(249, 249, 243, .72); border: 1px solid rgba(255, 255, 255, .85); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 40px 80px -44px rgba(30, 45, 25, .55);
  animation: ring-player-in .7s var(--ease) both; }
@supports (backdrop-filter: blur(4px)) { .c-ring-player { background: rgba(246, 246, 238, .55); backdrop-filter: blur(22px) saturate(1.4); } }
.c-ring-player[hidden], .c-ring-player [hidden] { display: none; }
@keyframes ring-player-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
.c-ring-player__chapter { margin: 0; font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--color-secondary); font-variant-numeric: tabular-nums; }
.c-ring-player__of { color: var(--ring-ink-muted); opacity: .7; }
.c-ring-player__title { margin: 6px 0 0; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -0.025em; font-weight: var(--fw-light); }
.c-ring-player__caption { min-height: calc(3 * 1.5em); margin: 14px 0 0; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.5; color: #1d2a20; transition: opacity .3s var(--ease); }
.c-ring-player__caption.is-empty { opacity: 0; }
.c-ring-player.is-cc-off .c-ring-player__caption { visibility: hidden; min-height: 0; height: 0; margin: 0; }
.c-ring-hero.is-tour-loading .c-ring-player__caption { color: var(--ring-ink-muted); opacity: 1; }

.c-ring-player__progress { position: relative; margin: 16px 0 0; padding-bottom: 22px; }
.c-ring-player__bar { position: relative; height: 4px; border-radius: 4px; background: rgba(11, 20, 12, .12); cursor: pointer; }
.c-ring-player__bar::before { content: ""; position: absolute; inset: -8px 0; } /* bigger hit area */
.c-ring-player__fill { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--ring-green), var(--ring-data)); transform-origin: 0 50%; transform: scaleX(0); }
.c-ring-player__marks { position: absolute; left: 0; right: 0; top: -5px; margin: 0; padding: 0; list-style: none; height: 0; }
.c-ring-player__marks li { position: absolute; top: 0; }
.c-ring-player__marks li:last-child .c-ring-player__mark span { left: auto; right: -12px; }
.c-ring-player__mark { position: relative; display: block; width: 14px; height: 14px; margin-left: -1px; padding: 0; border: 0; background: none; cursor: pointer; }
.c-ring-player__mark::before { content: ""; position: absolute; left: 0; top: 2px; width: 2px; height: 10px; border-radius: 1px; background: rgba(11, 20, 12, .35); }
.c-ring-player__mark span { position: absolute; left: 0; top: 18px; font-size: 11px; letter-spacing: .04em; color: var(--ring-ink-muted); white-space: nowrap; }
.c-ring-player__mark.is-done span { color: var(--ring-ink); }
.c-ring-player__mark[aria-current] span { color: var(--ring-ink); font-weight: var(--fw-medium); }
.c-ring-player__mark[aria-current]::before { background: var(--ring-ink); }
.c-ring-player__mark:hover span { color: var(--ring-ink); text-decoration: underline; text-underline-offset: 3px; }
.c-ring-player__mark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 3px; }

.c-ring-player__controls { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.c-ring-player__btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ring-ink); cursor: pointer; transition: background-color .2s var(--ease); }
.c-ring-player__btn svg { width: 22px; height: 22px; }
.c-ring-player__btn:hover { background: rgba(255, 255, 255, .75); }
.c-ring-player__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.c-ring-player__btn--main { width: 46px; height: 46px; background: var(--ring-ink); color: #F3F5EE; margin-right: 4px; }
.c-ring-player__btn--main:hover { background: #24342a; }
.c-ring-player__btn[data-p-cc][aria-pressed="false"] { opacity: .45; }
.c-ring-player__time { margin-left: 8px; font-size: 13px; color: var(--ring-ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-ring-player__spacer { flex: 1; }
.c-ring-player__vol { width: 84px; accent-color: var(--ring-ink); cursor: pointer; }
/* tour language DE | EN (Welle 17a): small, quiet, works light and dark via the ring tokens */
.c-ring-player__lang { display: inline-flex; gap: 2px; margin-right: 6px; padding: 2px; border: 1px solid rgba(127, 127, 127, .3); border-radius: var(--radius-pill); }
.c-ring-player__lang button { min-width: 30px; height: 26px; padding: 0 7px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ring-ink-muted); font: inherit; font-size: 11.5px; font-weight: var(--fw-medium); letter-spacing: .06em; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.c-ring-player__lang button:hover { color: var(--ring-ink); }
.c-ring-player__lang button[aria-pressed="true"] { background: var(--ring-ink); color: var(--ring-bg-1); cursor: default; }
.c-ring-player__lang button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.c-ring-player__hint { margin: 8px 0 0; font-size: 11.5px; color: var(--ring-ink-muted); opacity: .8; }

.c-ring-player__end-title { margin: 8px 0 0; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; letter-spacing: -0.025em; font-weight: var(--fw-light); }
.c-ring-player__end-title:focus { outline: none; }
.c-ring-player__end-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.c-ring-player__end-meta { display: flex; gap: 18px; margin-top: 16px; }
.c-ring-player__link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ring-ink); cursor: pointer; }
.c-ring-player__link svg { width: 18px; height: 18px; }
.c-ring-player__link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.c-ring-player__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }

/* theme card / pill of the current tour chapter */
.c-ring-card.is-tour .c-ring-card__btn { background: #fff; border-color: rgba(11, 20, 12, .55); transform: translateY(-2px); }
.c-ring-hero.is-fallback.is-touring .c-ring-card.is-tour .c-ring-card__btn { box-shadow: 0 0 0 3px rgba(111, 154, 58, .25), 0 18px 34px -18px rgba(35, 50, 30, .5); }

/* hotspots: dossier facts floating next to an unfolded segment (js/ring.js) */
.c-ring-hotspots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.c-ring-hotspot { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; pointer-events: auto; cursor: pointer; font: inherit; color: var(--ring-ink);
  background: rgba(251, 251, 246, .62); border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--radius-pill);
  box-shadow: 0 12px 26px -16px rgba(30, 45, 25, .5); opacity: 0; transition: opacity .6s var(--ease), background-color .2s; will-change: transform; }
@supports (backdrop-filter: blur(4px)) { .c-ring-hotspot { backdrop-filter: blur(10px) saturate(1.3); } }
.c-ring-hotspot[hidden] { display: none; }
.c-ring-hotspot.is-visible { opacity: 1; }
.c-ring-hotspot:hover, .c-ring-hotspot.is-active { background: rgba(255, 255, 255, .92); z-index: 2; }
.c-ring-hotspot:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.c-ring-hotspot__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ring-green); box-shadow: 0 0 0 3px rgba(111, 154, 58, .2); animation: ring-hot-dot 3s ease-in-out infinite; }
.c-ring-hotspot--maschine .c-ring-hotspot__dot { background: #fff; box-shadow: 0 0 0 1px rgba(11,20,12,.3), 0 0 0 4px rgba(255,255,255,.5); }
.c-ring-hotspot--daten .c-ring-hotspot__dot { background: var(--ring-data); box-shadow: 0 0 0 3px rgba(227, 184, 92, .35), 0 0 8px rgba(127, 211, 156, .9); }
@keyframes ring-hot-dot { 50% { transform: scale(1.25); } }
.c-ring-hotspot__value { font-size: 17px; font-weight: var(--fw-medium); letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-ring-hotspot__ctx { position: absolute; left: 50%; top: calc(100% + 8px); width: 230px; padding: 10px 12px; text-align: left; font-size: 12.5px; line-height: 1.4; color: #24302a;
  background: rgba(251, 251, 246, .95); border: 1px solid #fff; border-radius: 12px; box-shadow: 0 18px 36px -18px rgba(30, 45, 25, .55);
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; pointer-events: none; }
.c-ring-hotspot__ctx small { display: block; margin-top: 5px; font-size: 11px; color: #5f6858; }
.c-ring-hotspot.is-active .c-ring-hotspot__ctx { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

@media (max-width: 767px) {
  .c-ring-player { max-width: none; padding: 18px 16px 12px; }
  .c-ring-player__caption { min-height: calc(4 * 1.5em); }
  .c-ring-player__hint, .c-ring-player__vol { display: none; }
  .c-ring-player__mark span { font-size: 10px; }
  .c-ring-hotspot { padding: 5px 10px 5px 7px; }
  .c-ring-hotspot__value { font-size: 14px; }
  .c-ring-hotspot__ctx { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-ring-tour__start-icon::after, .c-ring-hotspot__dot, .c-ring-player { animation: none; }
  .c-tour-fx * { transition: none !important; animation: none !important; }
  .c-ring-tour__start, .c-ring-hotspot, .c-ring-hotspot__ctx, .c-ring-player__caption { transition: none; }
}

/* ------------------------------------------------------------------ immersive guided tour (3D only, js/ring-tour.js)
   html.is-ring-immersive: header steps back, page scroll locked. .c-ring-hero.is-immersive: hero covers the viewport,
   a placeholder (.c-ring-hero__ph) keeps the page layout. Overlays (.c-tour-fx) are aria-hidden: captions carry the content. */
html.is-ring-immersive, html.is-ring-immersive body { overflow: hidden; }
html.is-ring-immersive .c-header { transform: translate3d(0, -110%, 0); opacity: 0; pointer-events: none; transition: transform .8s var(--ease), opacity .6s var(--ease); }
.c-ring-hero.is-immersive { position: fixed; inset: 0; z-index: 90; margin: 0; padding: 0; min-height: 0; height: 100%; display: block; animation: ring-imm-in .9s var(--ease) both; }
@keyframes ring-imm-in { from { opacity: .55; } to { opacity: 1; } }
.c-ring-hero.is-immersive .c-ring-hero__stage { position: absolute; inset: 0; height: auto; z-index: -1; }
.c-ring-hero.is-immersive .c-ring-hero__canvas { -webkit-mask-image: none; mask-image: none; }
.c-ring-hero.is-immersive .c-ring-hero__content { transform: none !important; opacity: 1 !important; visibility: visible !important; max-width: none; }
.c-ring-hero.is-immersive .c-ring-hero__themes, .c-ring-hero.is-immersive .c-ring-hero__label, .c-ring-hero.is-immersive .c-ring-hotspots { display: none; }
.c-ring-hero.is-immersive .c-ring-dossier { top: 24px; }

/* player: cinematic subtitles over a slim glass control bar */
.c-ring-hero.is-immersive .c-ring-player { position: fixed; z-index: 4; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0 auto; width: min(880px, calc(100% - 32px)); max-width: none; padding: 12px 18px 6px; border-radius: 18px; }
@supports (backdrop-filter: blur(4px)) { .c-ring-hero.is-immersive .c-ring-player { background: rgba(246, 246, 238, .46); } }
.c-ring-hero.is-immersive .c-ring-player__head { display: none; }
.c-ring-hero.is-immersive .c-ring-player__caption { min-height: calc(2 * 1.45em); margin: 0; text-align: center; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; text-wrap: balance; }
.c-ring-hero.is-immersive .c-ring-player__progress { margin-top: 10px; }
.c-ring-hero.is-immersive .c-ring-player__controls { margin-top: 4px; }
.c-ring-hero.is-immersive .c-ring-player__hint { display: none; }
.c-ring-hero.is-immersive .c-ring-player__btn--main { width: 40px; height: 40px; }
.c-ring-hero.is-immersive .c-ring-player__progress { padding-bottom: 18px; }
.c-ring-hero.is-immersive.is-tour-ended .c-ring-player { top: 0; bottom: 0; height: max-content; width: min(560px, calc(100% - 32px)); padding: 28px 30px 24px; }

/* overlay layer: chapter titles, words, facts as large figures, image cards (positions from tour-choreo.json, in % of the stage) */
.c-tour-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; color: var(--ring-ink); --tour-px: 0; --tour-py: 0; }
.c-tour-fx > * { position: absolute; margin: 0; --ax: -50%; --ay: -50%; --d: 1;
  transform: translate(var(--ax), var(--ay)) translate3d(calc(var(--tour-px) * var(--d) * -14px), calc(var(--tour-py) * var(--d) * 10px), 0);
  opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 0s 1s; }
.c-tour-fx > .is-l { --ax: 0%; text-align: left; }
.c-tour-fx > .is-r { --ax: -100%; text-align: right; }
.c-tour-fx > .is-in { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; }

.c-tour-chapter { left: clamp(20px, 5vw, 96px); top: clamp(28px, 8vh, 96px); --ax: 0%; --ay: 0%; display: flex; flex-direction: column; gap: 10px; }
.c-tour-chapter__num { font-size: 12px; font-weight: var(--fw-medium); letter-spacing: .24em; text-transform: uppercase; color: var(--color-secondary); }
.c-tour-chapter__title { display: block; max-width: 10ch; font-size: clamp(56px, 9vw, 164px); line-height: .9; letter-spacing: -0.05em; font-weight: var(--fw-light); transform: translate3d(0, .25em, 0); transition: transform 1.6s var(--ease); }
.c-tour-chapter.is-in .c-tour-chapter__title { transform: none; }
.c-tour-dock { left: clamp(20px, 5vw, 96px); top: clamp(18px, 3.5vh, 36px); --ax: 0%; --ay: 0%; font-size: 12px; font-weight: var(--fw-medium); letter-spacing: .2em; text-transform: uppercase; color: var(--ring-ink-muted); }
.c-tour-dock span { color: var(--color-secondary); margin-right: 6px; }

.c-tour-text span { display: inline-block; opacity: 0; transform: translate3d(0, .45em, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.c-tour-text.is-in span { opacity: 1; transform: none; }
.c-tour-text--l { max-width: 15ch; font-size: clamp(26px, 3vw, 50px); line-height: 1.04; letter-spacing: -0.035em; font-weight: var(--fw-light); }
.c-tour-text--xl { white-space: nowrap; font-size: clamp(44px, 6.6vw, 118px); line-height: .95; letter-spacing: -0.05em; font-weight: var(--fw-light); }
.c-tour-text--label { white-space: nowrap; padding: 7px 14px 6px; font-size: 12.5px; font-weight: var(--fw-medium); letter-spacing: .16em; text-transform: uppercase; border-radius: var(--radius-pill); background: rgba(250, 250, 244, .55); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 14px 30px -20px rgba(30, 45, 25, .5); }
@supports (backdrop-filter: blur(4px)) { .c-tour-text--label { backdrop-filter: blur(10px) saturate(1.3); } }
.c-tour-text--label span { transition-delay: 0s; transform: none; }

.c-tour-fact { display: flex; flex-direction: column; gap: 8px; max-width: min(30ch, 40vw); }
.c-tour-fact.is-l { align-items: flex-start; }
.c-tour-fact strong { display: block; font-size: clamp(72px, 10.5vw, 196px); line-height: .86; letter-spacing: -0.055em; font-weight: var(--fw-light); font-variant-numeric: tabular-nums; white-space: nowrap; transform: translate3d(0, .12em, 0); transition: transform 1.5s var(--ease); }
.c-tour-fact.is-in strong { transform: none; }
.c-tour-fact span { font-size: clamp(15px, 1.2vw, 19px); line-height: 1.4; color: #24302a; max-width: 26ch; }
.c-tour-fact small { font-size: 11px; font-weight: var(--fw-medium); letter-spacing: .14em; text-transform: uppercase; color: var(--color-secondary); }
.c-tour-fact--in { align-items: center; text-align: center; max-width: 17em; }
.c-tour-fact--in strong { font-size: clamp(48px, 6vw, 112px); }
.c-tour-fact--in span { font-size: 13px; max-width: 19ch; }

.c-tour-img { width: calc(var(--w, 20) * 1%); padding: 6px; border-radius: 18px; overflow: hidden; background: rgba(250, 250, 244, .45); border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 40px 70px -36px rgba(30, 45, 25, .6); rotate: var(--rot, 0deg); scale: .94; transition: opacity 1.2s var(--ease), scale 1.6s var(--ease), visibility 0s 1.2s; }
@supports (backdrop-filter: blur(4px)) { .c-tour-img { backdrop-filter: blur(12px) saturate(1.3); } }
.c-tour-fx > .c-tour-img.is-in { scale: 1; transition: opacity 1.2s var(--ease), scale 1.6s var(--ease), visibility 0s; }
.c-tour-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 13px; transform: scale(1.08); transition: transform 12s linear; }
.c-tour-img.is-in img { transform: scale(1); }

@media (max-width: 767px) {
  .c-ring-hero.is-immersive .c-ring-player { padding: 10px 12px 4px; }
  .c-ring-hero.is-immersive .c-ring-player__caption { font-size: 15px; min-height: calc(3 * 1.45em); }
  .c-tour-chapter { top: 9%; }
  .c-tour-chapter__title { font-size: clamp(44px, 14vw, 76px); }
  .c-tour-fx > .c-tour-text--label { display: none; }
  .c-tour-fx > .c-tour-text--l, .c-tour-fx > .c-tour-text--xl { left: 50% !important; top: 58% !important; --ax: -50%; text-align: center; white-space: normal; max-width: 90vw; }
  .c-tour-text--xl { font-size: clamp(38px, 12vw, 60px); }
  .c-tour-text--l { font-size: clamp(24px, 7vw, 34px); }
  .c-tour-fx > .c-tour-fact { left: 6% !important; top: 30% !important; --ax: 0%; align-items: flex-start; text-align: left; max-width: 52vw; }
  .c-tour-fact strong { font-size: clamp(52px, 17vw, 88px); }
  .c-tour-fact span { font-size: 13.5px; }
  .c-tour-fx > .c-tour-img { left: auto !important; right: 4%; top: 30% !important; --ax: 0%; width: 38vw; }
}
.c-tour-img .c-ai-badge { left: 14px; bottom: 14px; }

/* ---------------------------------------------------------------- Startseite: Scroll-Hinweis, Scroll-Wirkung, Mobil bildschirmfüllend
   js/hero-scroll.js setzt --hero-p (0 = oben, 1 = Hero fast verlassen), .is-scrolled nach dem ersten Scrollen
   und fügt den Pfeil .c-ring-hero__next ein. Während Tour/Immersion und bei offenem Dossier ohne Wirkung. */
.c-ring-hero { --hero-p: 0; }
/* warmer Grund: Sand und etwas Gelb von unten links, nimmt beim Scrollen zu (liegt über dem Canvas-Grund, unter dem Text) */
.c-ring-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 55% at 12% 100%, rgba(227, 184, 92, .2), rgba(227, 184, 92, 0) 70%), radial-gradient(60% 40% at 90% 0%, rgba(233, 225, 207, .35), transparent 70%), linear-gradient(180deg, rgba(241, 236, 223, 0) 45%, rgba(241, 236, 223, .7));
  opacity: calc(.35 + var(--hero-p) * .65); }
.c-ring-hero__stage { transform-origin: 50% 42%; transform: translate3d(0, calc(var(--hero-p) * 5%), 0) scale(calc(1 - var(--hero-p) * .14)); opacity: calc(1 - var(--hero-p) * .75); }
.c-ring-hero__inner { transform: translate3d(0, calc(var(--hero-p) * -16px), 0); }
.c-ring-hero.is-immersive::after, .c-ring-hero.is-touring::after { opacity: 0; }
.c-ring-hero.is-immersive .c-ring-hero__stage, .c-ring-hero.is-touring .c-ring-hero__stage, .c-ring-hero.is-open .c-ring-hero__stage { transform: none; opacity: 1; }
.c-ring-hero.is-immersive .c-ring-hero__inner, .c-ring-hero.is-touring .c-ring-hero__inner { transform: none; }

.c-ring-hero__next { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 3; width: 44px; height: 44px; margin-left: -22px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(11, 20, 12, .14); background: rgba(250, 250, 244, .6); color: var(--ring-ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; box-shadow: 0 10px 24px -16px rgba(60, 45, 10, .55);
  transition: opacity .5s var(--ease), visibility 0s, border-color .2s var(--ease), background-color .2s var(--ease); animation: c-ring-next 2.6s var(--ease) infinite; }
.c-ring-hero__next::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ring-accent); opacity: .9; }
.c-ring-hero__next:hover { border-color: var(--ring-accent); background: rgba(250, 250, 244, .85); }
.c-ring-hero__next:focus-visible { outline: 2px solid var(--color-focus, #3F6B42); outline-offset: 3px; }
.c-ring-hero.is-scrolled .c-ring-hero__next, .c-ring-hero.is-touring .c-ring-hero__next, .c-ring-hero.is-immersive .c-ring-hero__next, .c-ring-hero.is-open .c-ring-hero__next { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s var(--ease), visibility 0s .4s; }
@keyframes c-ring-next { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, 6px, 0); } }

@media (max-width: 767px) {
  /* Hero füllt den ersten Bildschirm: Ring oben groß und mittig, Text und Buttons darunter, Pfeil am Rand */
  .c-ring-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 100svh; padding: var(--header-h) 0 68px; }
  .c-ring-hero__stage { position: relative; flex: 1 1 auto; height: auto; min-height: min(320px, 46svh); margin: 0 0 -36px; }
  .c-ring-hero__canvas { -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
  .c-ring-hero__inner { flex: 0 0 auto; }
  .c-ring-hero .c-eyebrow { margin-bottom: 10px; }
  .c-ring-hero__text { font-size: 16px; line-height: 1.5; }
  .c-ring-hero__actions { flex-wrap: nowrap; gap: 8px; margin-top: 20px; }
  .c-ring-hero__actions .c-btn { padding: 12px 14px; font-size: 14.5px; gap: 8px; min-width: 0; }
  .c-ring-hero.is-3d .c-ring-hero__themes { margin-top: 14px; }
  .c-ring-hero.is-immersive .c-ring-hero__stage { margin: 0; min-height: 0; }
}
@media (max-width: 767px) and (max-height: 760px) {
  .c-ring-hero__headline { font-size: clamp(32px, 9vw, 40px); }
  .c-ring-hero__text { font-size: 15px; }
  .c-ring-hero__stage { min-height: min(280px, 42svh); }
}
@media (prefers-reduced-motion: reduce) {
  .c-ring-hero__next { animation: none; }
  .c-ring-hero__stage, .c-ring-hero__inner { transform: none; }
  .c-ring-hero__stage { opacity: 1; }
}
