/* Das Problem: Interview im Chesterfield (aus Problem Stuhl Varianten 7b).
   Pro Frage: Agenturantwort blendet Wort für Wort ein, wird gestrichen, dann antwortet Patryk in der Glasblase.
   Farben kommen aus den Theme-Variablen der Seite. */
.ch-track { --ch-gold: var(--ws-gold); --ch-gold-t: var(--accent-text); --ch-mute: var(--fg-mute); --ch-dim: color-mix(in srgb, var(--fg) 30%, transparent);
  --ch-paper: #FBF8F2; --ch-glass: rgba(255,255,255,0.38); --ch-glass-b: rgba(255,255,255,0.75);
  position: relative; height: 760vh; width: 100vw; margin-left: calc(50% - 50vw); }
[data-theme='dark'] .ch-track { --ch-gold-t: var(--ws-gold); --ch-paper: #1E1A14; --ch-glass: rgba(52,44,34,0.4); --ch-glass-b: rgba(243,238,228,0.2); }
.ch-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ch-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(191,174,134,0.12)); }
.ch-chair { position: absolute; bottom: 0; right: clamp(0px, 4vw, 70px); height: min(80vh, 760px); aspect-ratio: 590 / 597; z-index: 2; pointer-events: none; }
.ch-chair img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }

.ch-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ch-mute); }
.ch-lbl.ch-g { color: var(--ch-gold-t); }
.ch-sw { transition: opacity 260ms ease, transform 420ms cubic-bezier(.16,1,.3,1); }
.ch-sw.is-out { opacity: 0; transform: translateY(8px); }

.ch-q { position: absolute; left: clamp(24px,4vw,56px); top: clamp(80px,13vh,140px); width: min(480px, 38vw); z-index: 4; }
.ch-qt { margin: 12px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px,2.8vw,42px); line-height: 1.14; color: var(--fg); text-wrap: balance; }
.ch-qt em { font-style: italic; color: var(--ch-gold-t); }
.ch-ag { margin-top: clamp(18px,3vh,30px); padding-top: 14px; border-top: 1px solid var(--line); }
.ch-agh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ch-dots { display: inline-flex; gap: 5px; }
.ch-dots i { width: 6px; height: 6px; border-radius: 99px; border: 1px solid var(--ch-mute); opacity: calc(1 - var(--ch-strike, 0) * 0.6); }
.ch-agq { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(16px,1.6vw,21px); line-height: 1.45; color: var(--fg); opacity: calc(1 - var(--ch-rev, 0) * 0.4); }
.ch-w { color: var(--ch-dim); transition: color 380ms ease; }
.ch-w.is-on { color: var(--fg); }
/* Strich läuft Zeile für Zeile */
.ch-strk { background-image: linear-gradient(var(--ch-gold), var(--ch-gold)); background-repeat: no-repeat; background-position: 0 58%;
  background-size: calc(var(--ch-strike, 0) * 100%) 1.5px; -webkit-box-decoration-break: slice; box-decoration-break: slice; }

.ch-panel { padding: 14px 16px 12px; border-radius: 16px; background: var(--ch-glass); border: 1px solid var(--ch-glass-b);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.45), 0 24px 50px -32px rgba(26,23,20,0.4); }
.ch-agbars { margin-top: 16px; }
.ch-bh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ch-bm { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ch-mute); }
.ch-br { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 10px; align-items: center; margin-top: 5px; }
.ch-bn { font-size: 10.5px; color: var(--ch-mute); white-space: nowrap; }
.ch-bt { position: relative; height: 9px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ch-bt i { position: absolute; top: 0; bottom: 0; border-radius: 99px; transform: scaleX(0); transform-origin: left center; }
.ch-agbars .ch-bt i { background: var(--ch-mute); opacity: 0.55; }
.ch-agbars .ch-br:nth-of-type(2) .ch-bt i { left: 0%; width: 24%; } .ch-agbars .ch-br:nth-of-type(3) .ch-bt i { left: 26%; width: 26%; }
.ch-agbars .ch-br:nth-of-type(4) .ch-bt i { left: 54%; width: 20%; } .ch-agbars .ch-br:nth-of-type(5) .ch-bt i { left: 76%; width: 24%; }
.ch-bx { display: grid; grid-template-columns: 94px repeat(10, minmax(0,1fr)); margin-top: 7px; }
.ch-bx span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; color: var(--ch-mute); opacity: 0.7; }

/* Patrykseite: Balkentafel vor dem Anzug fast deckend, damit sie lesbar bleibt */
.ch-mebars { position: absolute; z-index: 5; left: var(--ch-px, 60%); top: var(--ch-py, 60%); width: var(--ch-pw, 300px);
  background: rgba(251,248,242,0.9); border-color: rgba(191,174,134,0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
[data-theme='dark'] .ch-mebars { background: rgba(30,26,20,0.88); border-color: rgba(191,174,134,0.4); }
.ch-mebars .ch-bn, .ch-mebars .ch-bx span { color: var(--fg); opacity: 0.78; }
.ch-mebars .ch-bm { color: var(--ch-gold-t); }
.ch-mebars .ch-bt { background: rgba(191,174,134,0.16); }
/* Alle Disziplinen starten gleichzeitig und enden gestaffelt: Branding W3, Web W4, Content W5, KI W6 */
.ch-mebars .ch-bt i { left: 0; width: 60%; background: var(--ch-gold); }
.ch-mebars .ch-bt i[data-ch-par="0"] { width: 30%; }
.ch-mebars .ch-bt i[data-ch-par="1"] { width: 40%; }
.ch-mebars .ch-bt i[data-ch-par="2"] { width: 50%; }
.ch-mebars .ch-bt i[data-ch-par="3"] { width: 60%; }
.ch-track.is-mpanel .ch-mebars { padding-bottom: calc(var(--ch-sh, 34px) + 16px); }

/* Sprechblase: drei runde Ecken, zum Mund hin fast spitz; wächst aus dieser Ecke */
.ch-bubble { position: absolute; z-index: 5; left: var(--ch-bx, 50%); top: var(--ch-by, 36%); width: var(--ch-bw, min(340px, 32vw));
  padding: 20px 22px; border-radius: 22px 22px 3px 22px; background: rgba(251,248,242,0.9); border: 1px solid rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.5), 0 30px 60px -30px rgba(26,23,20,0.35);
  opacity: var(--ch-rev, 0); transform: translateY(calc((1 - var(--ch-rev, 0)) * 10px)) scale(calc(0.96 + var(--ch-rev, 0) * 0.04)); transform-origin: 100% 100%; }
[data-theme='dark'] .ch-bubble { background: rgba(34,29,22,0.9); border-color: rgba(243,238,228,0.18); }
.ch-bubble p { margin: 8px 0 0; font-family: var(--font-display); font-style: italic; font-size: clamp(19px,2vw,28px); line-height: 1.2; color: var(--fg); }
.ch-au { color: var(--ch-gold-t); }

/* Unterschrift auf der Sitzfläche, einmal eingeschrieben */
.ch-sig { position: absolute; z-index: 5; left: var(--ch-sx, 50%); top: var(--ch-sy, 80%); width: var(--ch-sw, 260px); aspect-ratio: 1124 / 232; pointer-events: none;
  background: #F3EEE4; -webkit-mask: url(../../assets/signature-theisebach.png) center / contain no-repeat; mask: url(../../assets/signature-theisebach.png) center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(26,23,20,0.45)); clip-path: inset(0 100% 0 0); transition: clip-path 1.9s cubic-bezier(.65,0,.35,1) .25s; }
.ch-track.is-signed .ch-sig { clip-path: inset(0 -4% 0 0); }

/* Fortschritt: Konturziffer im freien Raum, darunter Thema und sechs Striche */
.ch-ghost { position: absolute; left: clamp(18px,3.4vw,48px); bottom: clamp(50px,9vh,90px); z-index: 1; font-family: var(--font-display); font-size: clamp(110px, 14vw, 230px);
  line-height: 0.8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(191,174,134,0.5); pointer-events: none; font-variant-numeric: tabular-nums; }
.ch-prog { position: absolute; left: clamp(24px,4vw,56px); bottom: clamp(24px,5vh,48px); z-index: 3; display: flex; align-items: center; gap: 14px; width: min(420px, 38vw); pointer-events: none; }
.ch-pcat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); opacity: 0.72; white-space: nowrap; }
.ch-segs { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; }
.ch-segs i { position: relative; height: 1px; background: var(--line); overflow: hidden; }
.ch-segs b { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--ch-gold); }
.ch-end { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ch-mute); opacity: 0.7; }

/* Tablet quer: schmalere Spalte, kleinerer Sessel, damit die Blase neben das Gesicht passt */
@media (max-width: 1100px) and (min-width: 901px) {
  .ch-q { width: min(420px, 34vw); }
  .ch-chair { height: min(70vh, 760px); }
}
@media (max-height: 700px) and (min-width: 901px) {
  .ch-qt { font-size: clamp(19px, 2.2vw, 28px); }
  .ch-ag { margin-top: 12px; padding-top: 10px; }
  .ch-agq { font-size: 14.5px; }
  .ch-bx { display: none; }
  .ch-br { margin-top: 3px; } .ch-bt { height: 7px; }
  .ch-panel { padding: 10px 14px; }
  .ch-agbars { margin-top: 10px; }
  .ch-ghost { font-size: clamp(90px, 11vw, 150px); }
}
/* Smartphone und Tablet hochkant: Frage oben, Blase darunter, Sessel unten; die Unterschrift signiert die Tafel */
@media (max-width: 900px) {
  /* mobil als klare Abfolge: Fortschritt unter der Menüpille, Frage, Agentur, Blase, darunter mittig der Sessel */
  .ch-chair { height: min(40vh, 380px); right: calc(50% - min(40vh, 380px) * 0.494); }
  .ch-q { left: 20px; right: 20px; width: auto; top: 112px; }
  .ch-qt { font-size: clamp(22px, 5.6vw, 30px); }
  .ch-agq { font-size: 15.5px; }
  .ch-agbars, .ch-ghost { display: none; }
  .ch-bubble { padding: 14px 16px; }
  .ch-bubble p { font-size: 16px; line-height: 1.3; }
  .ch-prog { top: 80px; bottom: auto; left: 20px; right: 20px; width: auto; }
  .ch-bubble { border-radius: 20px 20px 3px 20px; }
  .ch-bh { flex-wrap: nowrap; } .ch-bm { font-size: 9px; letter-spacing: 0.1em; white-space: nowrap; }
  .ch-mebars .ch-bx { display: none; }
  .ch-mebars { padding: 12px 14px 10px; }
  .ch-br { margin-top: 4px; }
}
/* kleine Smartphones: alles etwas kompakter, damit Frage, Blase und Tafel nebeneinander Platz haben */
@media (max-width: 900px) and (max-height: 760px) {
  .ch-chair { height: min(35vh, 300px); right: calc(50% - min(35vh, 300px) * 0.494); }
  .ch-q { top: 98px; }
  .ch-qt { font-size: 20px; margin-top: 8px; }
  .ch-ag { margin-top: 12px; padding-top: 10px; }
  .ch-agq { font-size: 14px; }
  .ch-prog { top: 70px; }
  .ch-bubble { padding: 12px 14px; }
  .ch-bubble p { font-size: 15px; }
  .ch-mebars { padding: 9px 12px 8px; }
  .ch-bh { margin-bottom: 4px; }
  .ch-br { margin-top: 3px; } .ch-bt { height: 7px; }
  /* auf kleinen Displays fehlt der Platz für die Signatur in der Tafel */
  .ch-sig { display: none; }
  .ch-track.is-mpanel .ch-mebars { padding-bottom: 8px; }
}
@media (max-width: 900px) and (min-width: 600px) {
  .ch-chair { height: min(46vh, 480px); right: calc(50% - min(46vh, 480px) * 0.494); }
  .ch-bubble p { font-size: 19px; }
}
/* Tablet hochkant: genug Höhe für das Agentur-Diagramm unter der Agenturantwort */
@media (max-width: 900px) and (min-width: 600px) and (min-height: 900px) {
  .ch-agbars { display: block; margin-top: 18px; }
  .ch-agbars .ch-bx { display: grid; grid-template-columns: 94px repeat(10, minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-w { transition: none; } .ch-sig { transition: none; clip-path: none; }
}

/* Handy und Tablet hochkant: Patryks Antwort größer und mittig in der Blase.
   Die Blase behält ihre feste Höhe (längste Antwort), der Text sitzt darin zentriert. */
@media (max-width: 900px) {
  .ch-bubble { display: flex; flex-direction: column; }
  .ch-bubble > .ch-lbl { align-self: flex-start; }
  .ch-bubble p { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center;
    line-height: 1.16 !important; text-wrap: balance; padding: 0; margin-top: 4px !important; }
  .ch-bubble { padding-top: 12px !important; padding-bottom: 12px !important; }
  .ch-bubble p .ch-ot { display: block; }
}
@media (max-width: 900px) and (max-height: 760px) {
  .ch-bubble { padding-top: 10px !important; padding-bottom: 10px !important; }
}
@media (max-width: 900px) and (min-width: 600px) {

}
