/* =========================================================================
   Liquid-Glass-Oberfläche · Weiß mit Blau/Violett-Akzenten
   ========================================================================= */
:root {
  --blue: #3b6cff;
  --violet: #8f57f5;
  --grad: linear-gradient(135deg, var(--blue), var(--violet));
  --ink: #12131a;
  --ink-2: #4a4d5c;
  --ink-3: #8a8d9c;
  --line: rgba(20, 24, 60, .08);
  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .72);
  --radius: 28px;
  --shadow: 0 1px 1px rgba(30, 30, 80, .04), 0 12px 40px rgba(50, 50, 120, .12), 0 30px 80px rgba(80, 60, 160, .08);
  --gap: 20px;
  --sheet-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  overscroll-behavior: none;
  touch-action: none;
}
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Hintergrund ---------- */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0;
  background: radial-gradient(120% 80% at 50% 110%, #eef0ff 0%, #ffffff 55%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.b1 { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: radial-gradient(circle, rgba(59,108,255,.30), transparent 65%); animation: drift 22s ease-in-out infinite alternate; }
.b2 { width: 40vmax; height: 40vmax; right: -12vmax; bottom: -14vmax; background: radial-gradient(circle, rgba(143,87,245,.30), transparent 65%); animation: drift 26s ease-in-out infinite alternate-reverse; }
.b3 { width: 26vmax; height: 26vmax; left: 45%; top: 30%; background: radial-gradient(circle, rgba(120,140,255,.18), transparent 65%); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; cursor: grab; }
#gl.grabbing { cursor: grabbing; }
#gl.pointer { cursor: pointer; }

/* ---------- Liquid Glass ---------- */
.glass {
  position: fixed;
  z-index: 5;
  background:
    linear-gradient(160deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.42) 38%, rgba(255,255,255,.30) 62%, rgba(255,255,255,.55) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(24px) saturate(190%) brightness(1.04);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.35),
    inset 0 0 0 1px rgba(255,255,255,.35),
    inset 0 -18px 30px -24px rgba(143,87,245,.18),
    inset 0 18px 30px -26px rgba(255,255,255,.9);
}
/* Lichtkante: spiegelnder Rand */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.15) 30%, rgba(160,150,255,.25) 55%, rgba(255,255,255,.05) 70%, rgba(255,255,255,.9) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* weicher Glanz oben */
.glass::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 40%; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  opacity: .5;
}

/* ---------- Kopfzeile ---------- */
.topbar { top: var(--gap); left: var(--gap); display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 22px; }
.logo { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 4px 14px rgba(80,80,200,.15); }
.logo svg { width: 26px; height: 26px; }
.logo { overflow: hidden; }
.logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.home-link { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; position: relative; z-index: 1; min-width: 0; }
.brand { display: flex; flex-direction: column; line-height: 1.15; position: relative; z-index: 1; }
.brand strong { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.brand span { font-size: 12.5px; color: var(--ink-3); }

.toolbar { top: var(--gap); right: var(--gap); display: flex; gap: 4px; padding: 6px; border-radius: 999px; }
.tbtn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); transition: background .25s, color .25s, transform .15s; }
.tbtn svg { width: 20px; height: 20px; fill: currentColor; }
.tbtn svg[fill="none"] { fill: none; }
.tbtn .lbl { font-size: 13.5px; font-weight: 560; }
.tbtn:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.tbtn:active { transform: scale(.95); }
.tbtn[aria-pressed="true"], .tbtn.on { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(91,90,245,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.tbtn .i-pause { display: none; }
.tbtn.on .i-play { display: none; }
.tbtn.on .i-pause { display: block; }
.tbtn:focus-visible, .item:focus-visible, .chip:focus-visible, .pbtn:focus-visible, .cta:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Panels ---------- */
.panel { overflow: hidden; }
.nav { left: var(--gap); top: 100px; width: 268px; max-height: calc(100dvh - 120px); display: flex; flex-direction: column; padding: 14px 10px 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 12px; position: relative; z-index: 1; }
.chip { border: 0; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 560; color: var(--ink-2); background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(20,24,60,.06); transition: all .25s; }
.chip:hover { background: rgba(255,255,255,.9); }
.chip.active { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(91,90,245,.3); }

.list { list-style: none; margin: 0; padding: 0; overflow-y: auto; position: relative; z-index: 1; scrollbar-width: none; }
.list::-webkit-scrollbar { display: none; }
.item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 16px; background: transparent; text-align: left; transition: background .25s, opacity .3s, transform .15s; }
.item:hover { background: rgba(255,255,255,.65); }
.item:active { transform: scale(.98); }
.item .num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); font-variant-numeric: tabular-nums; }
.item .t { display: flex; flex-direction: column; min-width: 0; }
.item .t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .t small { font-size: 11.5px; color: var(--ink-3); }
.item.active { background: rgba(255,255,255,.92); box-shadow: 0 6px 20px rgba(80,80,200,.12), inset 0 0 0 1px rgba(255,255,255,1); }
.item.active .num { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(91,90,245,.35); }
.item.dim { opacity: .38; }

.info { right: var(--gap); top: 100px; width: 384px; max-height: calc(100dvh - 120px); display: flex; flex-direction: column; }
.info-scroll { overflow-y: auto; padding: 22px 24px 24px; position: relative; z-index: 1; scrollbar-width: thin; scrollbar-color: rgba(100,100,160,.25) transparent; }
.handle { display: none; }
.progress { position: absolute; left: 24px; right: 24px; top: 10px; height: 3px; border-radius: 3px; background: rgba(20,24,60,.06); overflow: hidden; z-index: 2; opacity: 0; transition: opacity .3s; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; }
.progress.on { opacity: 1; }

/* ---------- Inhalt ---------- */
#infoContent { animation: fadeUp .45s cubic-bezier(.2,.8,.2,1); }
#infoContent.swap { animation: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(91,90,245,.14); }
.info h2 { margin: 8px 0 8px; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.info h2 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.info h3 { margin: 22px 0 8px; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.lead { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.info p { font-size: 14.5px; line-height: 1.58; color: var(--ink-2); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.stat { padding: 12px 10px; border-radius: 18px; background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 4px 14px rgba(70,70,160,.06); min-width: 0; }
.stat b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.25; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(91,90,245,.14); color: var(--ink-2); }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.facts li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); opacity: .85; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.pbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(20,24,60,.07); font-size: 13.5px; font-weight: 560; color: var(--ink-2); transition: all .2s; }
.pbtn:hover { background: #fff; color: var(--ink); }
.pbtn svg { width: 16px; height: 16px; }
.pbtn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(91,90,245,.3); }
.pager .count { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Intro / Sense-Think-Act */
.cycle { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 18px; position: relative; }
.stage { position: relative; border: 0; padding: 14px 8px 12px; border-radius: 20px; background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 4px 14px rgba(70,70,160,.07); text-align: center; transition: transform .2s, box-shadow .2s; }
.stage:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #fff, 0 10px 24px rgba(70,70,160,.14); }
.stage .ic { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(91,90,245,.3); }
.stage .ic svg { width: 18px; height: 18px; }
.stage b { display: block; font-size: 13.5px; font-weight: 650; }
.stage small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.stage:not(:last-child)::after { content: ""; position: absolute; right: -6px; top: 31px; width: 6px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--violet)); opacity: .5; }
.base-row { margin-top: 6px; }
.base-row .stage { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; }
.base-row .stage .ic { margin: 0; width: 30px; height: 30px; flex: 0 0 auto; }
.base-row .stage::after { display: none; }

.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin-top: 20px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font-size: 15.5px; font-weight: 600; box-shadow: 0 10px 24px rgba(91,90,245,.32), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .15s, box-shadow .2s; }
.cta:hover { box-shadow: 0 14px 30px rgba(91,90,245,.4), inset 0 1px 0 rgba(255,255,255,.35); }
.cta:active { transform: scale(.98); }
.cta svg { width: 18px; height: 18px; fill: currentColor; }

.members { display: grid; gap: 6px; margin-top: 14px; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; border-radius: 18px; background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95); text-align: left; transition: background .2s; }
.member:hover { background: #fff; }
.member .num { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); flex: 0 0 auto; }
.member b { font-size: 14px; display: block; }
.member small { font-size: 12px; color: var(--ink-3); display: block; line-height: 1.35; margin-top: 2px; }

/* ---------- AR (iPhone/iPad, AR Quick Look) ---------- */
.ar-only { display: none !important; }
html.has-ar .ar-only { display: inline-flex !important; }
html.has-ar .no-ar-note { display: none; }
.tbtn.arbtn { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(91,90,245,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.tbtn.arbtn .lbl { display: inline !important; }
.cta.ghost { background: rgba(255,255,255,.75); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(91,90,245,.25), 0 6px 18px rgba(70,70,160,.10); margin-top: 10px; }
.cta.ghost svg { fill: none; stroke: var(--violet); }
.pbtn.ar { width: 100%; justify-content: center; margin-top: 18px; height: 46px; background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(91,90,245,.3); }
.pbtn.ar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.no-ar-note { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(91,90,245,.14); font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.no-ar-note svg { flex: 0 0 auto; width: 22px; height: 22px; stroke: var(--violet); fill: none; }

/* ---------- Hotspots ---------- */
#hotspots { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hs { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 0; padding: 0; border-radius: 50%; pointer-events: auto; display: grid; place-items: center;
  background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 4px 14px rgba(60,60,160,.22), inset 0 0 0 1px rgba(255,255,255,.95);
  font-size: 11.5px; font-weight: 700; color: var(--blue); transition: opacity .3s, transform .3s; will-change: transform; }
.hs::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(110,95,250,.35); animation: ping 2.4s ease-out infinite; }
.hs.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(91,90,245,.45); }
.hs.faint { opacity: .25; }
.hs.hidden { opacity: 0; pointer-events: none; }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.tip { position: fixed; z-index: 8; left: 0; top: 0; padding: 8px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.tip.on { opacity: 1; }
.tip small { color: var(--ink-3); font-weight: 500; margin-left: 6px; position: relative; z-index: 1; }
.tip span { position: relative; z-index: 1; }

.hint { left: 50%; bottom: calc(var(--gap) + var(--safe-b)); transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; transition: opacity .6s; }
.hint.gone { opacity: 0; pointer-events: none; }

.nojs, .err { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; font-size: 16px; color: var(--ink-2); background: #fff; text-align: center; padding: 24px; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) and (min-width: 901px) {
  .nav { width: 228px; }
  .info { width: 340px; }
  .tbtn .lbl { display: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  :root { --gap: 12px; --radius: 26px; }
  .topbar { padding: 7px 14px 7px 7px; border-radius: 20px; }
  .logo { width: 36px; height: 36px; border-radius: 12px; }
  .brand strong { font-size: 15px; }
  .brand span { font-size: 11.5px; }
  .toolbar { padding: 4px; }
  .tbtn { height: 40px; min-width: 40px; padding: 0 10px; }
  .tbtn .lbl { display: none; }
  #btnRotate { display: none; }
  .tbtn.arbtn .lbl { display: none !important; }
  .topbar { max-width: calc(100vw - 2 * var(--gap) - 186px); }
  .brand { min-width: 0; }
  .brand strong, .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .nav { left: 0; right: 0; top: auto; width: auto; max-height: none; bottom: calc(var(--sheet-h) + 10px); padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; transition: bottom .45s cubic-bezier(.2,.8,.2,1); }
  .nav::before, .nav::after { display: none; }
  .filters { display: none; }
  .list { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 6px 12px 8px; scroll-snap-type: x proximity; }
  .list li { flex: 0 0 auto; scroll-snap-align: center; }
  .item { padding: 6px 14px 6px 6px; border-radius: 999px; gap: 8px; background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: 0 4px 16px rgba(60,60,150,.12), inset 0 0 0 1px rgba(255,255,255,.95); }
  .item .num { width: 28px; height: 28px; border-radius: 50%; }
  .item .t small { display: none; }
  .item .t b { font-size: 13.5px; }
  .item.active { background: rgba(255,255,255,.95); }
  .item.dim { opacity: .6; }

  .info { left: 8px; right: 8px; top: auto; bottom: 0; width: auto; max-height: none; height: var(--sheet-h); border-radius: 28px 28px 0 0; padding-bottom: var(--safe-b); transition: height .45s cubic-bezier(.2,.8,.2,1); }
  .info.dragging, .nav.dragging { transition: none; }
  .handle { display: block; position: absolute; left: 0; right: 0; top: 0; height: 30px; border: 0; background: transparent; z-index: 3; touch-action: none; cursor: grab; }
  .handle span { display: block; width: 40px; height: 5px; border-radius: 5px; margin: 9px auto 0; background: rgba(40,40,80,.22); }
  .progress { top: 4px; left: 40%; right: 40%; }
  .info-scroll { padding: 26px 20px 22px; height: 100%; overscroll-behavior: contain; touch-action: pan-y; }
  .info h2 { font-size: 24px; margin: 6px 0 6px; }
  .lead { font-size: 14.5px; }
  .info.peek .lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .stats { gap: 6px; }
  .stat { padding: 10px 8px; border-radius: 16px; }
  .stat b { font-size: 15px; }
  .hint { display: none; }
  .hs { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 10.5px; }
}

@media (max-width: 440px) {
  .logo { display: none; }
  .topbar { padding: 8px 16px; min-height: 48px; }
}
@media (max-width: 340px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .hs::before { animation: none; }
  #infoContent { animation: none; }
}
