/* zenja.ai P9C – der Hologrammschirm neben dem Gesicht (holo.js; Punkteliste in VERSION.md).
   Vom Kubus (raum_P2F) übernommen: kein Rahmen, der Rand ist kein Strich, dort fällt das Licht aus; kalte Farbe auf
   warmem Grund; der Körper baut sich von unten auf (uAuf). Anders als dort: die Seite ist echte Schrift hinter Glas,
   kein Korn aus 2,5 mm, damit sie am Telefon lesbar bleibt (Simon: «detaillierter und näher an einem normalen
   Screen aber immer noch durchscheinend»). */

.holo { position:fixed; inset:0; z-index:6; pointer-events:none; visibility:hidden; --auf:0; }
.holo.da { visibility:visible; }
:root.holo_offen .holo { pointer-events:auto; }
/* Der Raum neben dem Schirm: ein Klick dorthin, aufs Gesicht, führt zurück */
.holo_neben { position:absolute; inset:0; background:transparent; }

.holo_koerper { position:absolute; display:flex; flex-direction:column;
  left:var(--achse, 24px); top:7vh; width:min(640px, 44vw); height:86vh;
  /* Glas: kühl und dunkel genug, dass die Schrift gegen jedes Licht dahinter trägt (VERSION.md, Punkt 4) */
  background:
    radial-gradient(120% 48% at 50% 0%, rgba(110,210,255,.10), rgba(110,210,255,0) 62%),
    linear-gradient(to bottom, rgba(5,16,26,.64), rgba(4,12,22,.70));
  /* der Rand fällt aus, statt als Linie zu stehen */
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%),
                     linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  -webkit-mask-composite:source-in; mask-composite:intersect;
  /* Aufbau von unten nach oben, wie die Körner im Kubus */
  clip-path:inset(calc((1 - var(--auf)) * 100%) 0 0 0);
  opacity:min(1, calc(var(--auf) * 1.6)); }

/* Der Hof: ein schwacher Schein um den Lichtkörper, hinter ihm, ausserhalb der Maske */
.holo_hof { position:absolute; left:var(--achse, 24px); top:7vh; width:min(640px, 44vw); height:86vh;
  border-radius:24px; box-shadow:0 0 90px 10px rgba(80,190,255,.13); opacity:var(--auf); pointer-events:none; }

/* Spektralsaum an den Seitenkanten, wie bei einem Prägehologramm (Kubus P1V: Regenbogen an den Kanten) */
.holo_koerper::before { content:""; position:absolute; inset:0; pointer-events:none; z-index:2;
  background:
    linear-gradient(to right, rgba(255,90,200,.20) 0, rgba(255,90,200,0) 6px),
    linear-gradient(to left, rgba(80,255,230,.20) 0, rgba(80,255,230,0) 6px),
    repeating-linear-gradient(to bottom, rgba(150,230,255,.028) 0 1px, rgba(0,0,0,0) 1px 3px); }
/* Die Aufbaukante: eine helle Zeile, die beim Öffnen nach oben läuft und dann verlischt */
.holo_koerper::after { content:""; position:absolute; left:0; right:0; height:2px; z-index:3; pointer-events:none;
  top:calc((1 - var(--auf)) * 100%); background:rgba(190,245,255,.9); box-shadow:0 0 18px 4px rgba(120,220,255,.6);
  opacity:calc((1 - var(--auf)) * 4); }

.holo_kopf { display:flex; align-items:center; gap:16px; padding:14px 22px 10px 26px; flex:none; position:relative; z-index:4; }
.holo_titel { margin:0; flex:1; min-width:0; color:#93e2ff; font:600 13px/1.3 Inter, system-ui, sans-serif;
  letter-spacing:.08em; text-transform:uppercase; overflow-wrap:normal; }
/* kein angeschnittenes Wort (Absage a8): der Titel bricht um, statt mit Auslassung zu enden */
.holo_zu { flex:none; min-height:44px; padding:0 18px; border:1px solid rgba(147,226,255,.45); border-radius:22px;
  background:rgba(8,26,40,.6); color:#e3f5ff; font:600 15px/1 Inter, system-ui, sans-serif; cursor:pointer; }
.holo_zu:hover, .holo_zu:focus-visible { background:rgba(147,226,255,.16); border-color:#93e2ff; outline:none; }

.holo_seite { flex:1; width:100%; border:0; display:block; background:transparent; color-scheme:normal;
  position:relative; z-index:1; }

/* Leiste: der zugeklappte Schirm behält Seite und Leselage */
.holo_leiste { position:fixed; z-index:5; left:var(--achse, 24px); bottom:18px; min-height:44px; max-width:calc(100vw - 2 * var(--achse, 24px));
  padding:0 20px; border:0; border-radius:22px; cursor:pointer;
  background:linear-gradient(to right, rgba(5,16,26,.86), rgba(5,16,26,.72));
  box-shadow:0 0 30px rgba(80,190,255,.22), inset 2px 0 0 rgba(255,90,200,.35), inset -2px 0 0 rgba(80,255,230,.35);
  color:#e3f5ff; font:500 15px/1.2 Inter, system-ui, sans-serif; text-align:left; }
.holo_leiste b { font-weight:640; color:#93e2ff; }
.holo_leiste { padding-top:10px; padding-bottom:10px; }
.holo_leiste[hidden] { display:none; }

/* Während der Schirm steht, tritt das Blatt zurück: hinter durchscheinendem Glas darf keine zweite Schrift stehen */
.blatt, .sprache { transition:opacity .45s ease; }
:root.holo_offen .blatt, :root.holo_offen .sprache { opacity:0; pointer-events:none; }
:root.holo_offen { overflow:hidden; }

/* Das Gesicht steht beim Schirm: quer rechts daneben, hochkant darüber */
@media (orientation: landscape) {
  :root.holo_auf .gesicht { left:75%; top:50%; width:min(44vw, 84vh); }
}
@media (orientation: portrait) {
  .holo_koerper, .holo_hof { left:10px; right:10px; width:auto; top:34vh; top:34svh; height:auto; bottom:10px; }
  .holo_kopf { padding:10px 22px 8px 20px; }
  .holo_leiste { left:12px; right:12px; bottom:12px; max-width:none; }
  :root.holo_auf .gesicht { left:50%; top:16%; top:16svh; width:min(80vw, 36vh); }
}

@media (prefers-reduced-motion: reduce) {
  .holo_koerper { clip-path:none; }
  .holo_koerper::after { display:none; }
}
