/* ============================================================
   KLANGLICHT PRISM – Styles
   Der Großteil der Gestaltung wird per JavaScript ins <canvas> gezeichnet
   (siehe js/main.js). Hier stehen nur Schrift, Grundlayout und das Projekt-Pop-up.
   ============================================================ */

/* Schrift: Pavanam (SIL Open Font License, siehe fonts/OFL.txt) */
@font-face {
  font-family: 'Pavanam';
  src: url('../fonts/Pavanam-Regular.woff2') format('woff2'),
       url('../fonts/Pavanam-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

html, body { margin: 0; background: #0f0f0f; }
canvas { position: fixed; left: 0; top: 0; display: block; pointer-events: none; }
#spacer { width: 1px; }   /* macht die Seite so hoch wie das Poster -> normales Scrollen/Swipen */

/* ---------- PROJEKT-POP-UP ---------- */
#pop { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
       opacity: 0; visibility: hidden; pointer-events: none; }   /* Ein-/Ausblenden: GSAP (js/main.js → openPop/closePop) */
#pop.open { pointer-events: auto; }
#pop .pwrap { transform-origin: center; }
#pop .pbox { position: relative; width: 1056px; min-height: 752px; box-sizing: border-box; padding: 0 60px 60px 35px;
             color: #fff; font-family: Pavanam, Helvetica, Arial, sans-serif; font-weight: 400; overflow: hidden;
             }
#pop .pbg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; }
#pop .pt, #pop .pb, #pop .pn { position: relative; z-index: 1; margin: 0; font-weight: 400; }
#pop .pt { font-size: 148px; line-height: 148px; padding-top: 47px; margin-left: -1px; }
#pop .pb { font-size: 29px; line-height: 36px; max-width: 730px; white-space: pre-line; margin-top: 11px; }
#pop .pn { font-size: 20px; line-height: 20px; margin-top: 60px; display: flex; align-items: center; }   /* gleich groß wie "▶ zum Projekt" am Poster */
#pop .pn:empty { display: none; }   /* Datenschutz: keine Namenszeile */
#pop .pn::before { content: ''; flex: none; width: 0; height: 0; border-left: 15px solid #fff; border-top: 8.5px solid transparent; border-bottom: 8.5px solid transparent; margin: 0 15px 0 1px; }
#pop .px { position: absolute; z-index: 2; right: 26px; top: 26px; width: 35px; height: 35px; padding: 0; border: 0; background: none; cursor: pointer; outline: none; }
#pop .px::before { content: ''; position: absolute; inset: -14px; }          /* größere Klickfläche */
#pop .px i { position: absolute; left: 50%; top: 50%; width: 49px; height: 2px; background: #fff; }
#pop .px i:first-child { transform: translate(-50%,-50%) rotate(45deg); }
#pop .px i:last-child { transform: translate(-50%,-50%) rotate(-45deg); }
/* Handy-Variante */
#pop .pbox.m { width: 378px; min-height: 520px; padding: 0 22px 34px 16px; }
#pop .pbox.m .pt { font-size: 62px; line-height: 62px; padding-top: 52px; }
#pop .pbox.m .pb { font-size: 15px; line-height: 19px; max-width: none; margin-top: 16px; }
#pop .pbox.m .pn { font-size: 10.5px; line-height: 12px; margin-top: 28px; }
#pop .pbox.m .pn::before { border-left-width: 9px; border-top-width: 5px; border-bottom-width: 5px; margin-right: 10px; }
#pop .pbox.m .px { right: 16px; top: 18px; width: 22px; height: 22px; }
#pop .pbox.m .px i { width: 31px; height: 1.5px; }
#pop .pbox.m .px::before { inset: -18px; }

/* ---------- UNSICHTBARE HTML-FASSUNG (js/main.js → buildSr) ---------- */
#sr { position: absolute; left: 0; top: 0; }
#sr ul { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
           clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Tastatur: der fokussierte Projekt-Button erscheint unten links */
.sr-btn:focus-visible { position: fixed; left: 16px; bottom: 16px; z-index: 5; width: auto; height: auto; margin: 0;
                        padding: 11px 16px 9px; overflow: visible; clip: auto; clip-path: none; border: 0; cursor: pointer;
                        background: #ED5E0F; color: #0f0f0f; font: 18px/1 Pavanam, Helvetica, Arial, sans-serif;
                        outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- SPRACHUMSCHALTER DE / EN (js/main.js → placeLang / setLang) ---------- */
#lang { position: absolute; z-index: 2; display: flex; align-items: baseline; color: #fff; line-height: 1;
        font-family: Pavanam, Helvetica, Arial, sans-serif; font-weight: 400; visibility: hidden; }   /* sichtbar, sobald platziert */
#lang span { opacity: .45; padding: 0 .15em; }
#lang button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; opacity: .45; transition: opacity .2s;
               padding: .6em .25em; margin: -.6em -.25em; position: relative; }   /* große Tippfläche, ohne die Optik zu verschieben */
#lang button:hover { opacity: .8; }
#lang button[aria-pressed="true"] { opacity: 1; cursor: default; }
#lang button:focus { outline: none; }
#lang button:focus-visible { outline: 2px solid #ED5E0F; outline-offset: -.35em; }
