/* ============================================================
   gian-marco wieland — portfolio
   struktur: index.html, info.html, projekte.html + projektseiten
   bilder & pläne liegen in "01 works/<projekt>/"
   ============================================================ */

:root{
  --paper:#000000;
  --ink:#eceae2;
  --mute:#75736a;
  --akzent:#31c974;          /* grün — via smiley auf blau schaltbar */
  --line:#2e2d29;
  --gross:clamp(16px,1.7vw,23px);
  --rand:26px;
}
[data-akzent="blau"]{ --akzent:#3aa0ff; }

@font-face{
  font-family:'Suisse Intl';
  src:url('../fonts/SuisseIntl-Regular.otf') format('opentype');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Suisse Intl';
  src:url('../fonts/SuisseIntl-Book.otf') format('opentype');
  font-weight:450;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Suisse Intl';
  src:url('../fonts/SuisseIntl-Medium.ttf') format('truetype');
  font-weight:500;font-style:normal;font-display:swap;
}

*{margin:0;padding:0;box-sizing:border-box}
::selection{background:var(--akzent);color:var(--paper)}

body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Suisse Intl',sans-serif;
  font-weight:500;
  font-size:15px;
  line-height:1.5;
  cursor:none;
  overflow-x:hidden;
  min-height:100vh;
}
a,button{cursor:none;color:inherit;text-decoration:none;font:inherit;background:none;border:none}

/* auf dem desktop wird nirgends gescrollt */
@media(min-width:701px){
  html,body{overflow:hidden;height:100vh}
}
@media (hover:none){
  body,a,button{cursor:auto}
  .cursor-dot,.cursor-ring{display:none}
}

/* ---------- eigener mauszeiger ---------- */
.cursor-dot{
  position:fixed;top:0;left:0;width:5px;height:5px;border-radius:50%;
  background:var(--ink);pointer-events:none;z-index:9999;
}
.cursor-ring{
  position:fixed;top:0;left:0;width:22px;height:22px;border-radius:50%;
  border:1px solid var(--mute);pointer-events:none;z-index:9998;
  transition:width .25s,height .25s,border-color .25s;
}
.cursor-ring.is-active{width:44px;height:44px;border-color:var(--akzent)}

/* ---------- kopf: gw, oben links, bündig mit dem text ---------- */
header{position:fixed;top:0;left:0;right:0;z-index:20;pointer-events:none}
.nav-logo{
  pointer-events:auto;position:fixed;top:20px;left:var(--rand);
  font-size:var(--gross);font-weight:500;letter-spacing:-.018em;line-height:1.2;
}
.logo-caret{
  display:inline-block;width:1.5px;height:.95em;background:var(--akzent);
  vertical-align:-.08em;margin-left:2px;
  opacity:0;transition:opacity .25s ease;
}
.logo-caret.an{opacity:1}
.logo-caret.an.blinkt{animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}

/* ---------- tipp-cursor ---------- */
.tipp-caret{
  display:inline-block;width:1.5px;height:1.02em;background:var(--akzent);
  vertical-align:-.12em;margin-left:2px;
}
.tipp-caret.blinkt{animation:blink 1s steps(1) infinite}
.tipp-caret.weg{transition:opacity .8s ease;opacity:0}

/* ---------- startseite ---------- */
/* verhindert, dass der fertige text vor dem tippen kurz aufblitzt */
.vor-intro .text{visibility:hidden}

.text{
  position:relative;z-index:10;
  min-height:100vh;display:flex;flex-direction:column;justify-content:flex-start;
  padding:34vh var(--rand) 60px;
  max-width:50vw;
}
.text p{
  font-size:var(--gross);line-height:1.32;letter-spacing:-.018em;
  font-weight:500;margin-bottom:1em;
}
.text p:last-of-type{margin-bottom:0}

/* links erscheinen erst, wenn die tipp-sequenz durch ist */
.text a{pointer-events:none;border-bottom:1.5px solid transparent;transition:color .3s,border-color .35s ease}
body.links-an .text a{pointer-events:auto;border-bottom-color:var(--akzent)}
.text a:hover{color:var(--akzent)}
.smiley{pointer-events:auto}

/* ---------- ecklink startseite (z.b. "alle projekte") ---------- */
.eck-link{
  position:fixed;bottom:40px;left:var(--rand);z-index:30;
  font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--mute);letter-spacing:.03em;
  opacity:0;pointer-events:none;transition:opacity .5s ease,color .25s;
}
body.links-an .eck-link{opacity:1;pointer-events:auto}
.eck-link:hover{color:var(--akzent)}
@media(max-width:700px){.eck-link{display:none}}

/* ---------- unterseiten (projekte, info, projekte-liste) ---------- */
.seite{
  position:relative;z-index:10;
  padding:120px var(--rand) 26px;
  height:100vh;display:flex;flex-direction:column;
}
.spalten{display:flex;gap:52px;align-items:flex-start}
.kopf{flex:0 0 46%;max-width:46%}

.seite h1{font-size:clamp(17px,1.75vw,24px);font-weight:500;letter-spacing:-.015em;margin-bottom:4px}
.p-meta{font-family:'IBM Plex Mono',monospace;font-size:10px;color:var(--mute);margin-bottom:26px}

/* p-intro: text unter dem titel — wird NICHT getippt, erscheint erst
   wenn der titel fertig getippt ist (oder sofort bei klick-skip) */
.p-intro{
  font-size:clamp(13px,1.3vw,17px);line-height:1.5;
  opacity:0;transition:opacity .8s ease;
}
.p-intro.an{opacity:1}
.p-intro p{margin-bottom:1em}
.p-intro p:last-child{margin-bottom:0}

/* dateiliste rechts */
.dateien{
  flex:1;font-family:'IBM Plex Mono',monospace;font-size:12px;
  display:flex;flex-direction:column;gap:13px;padding-top:5px;
}
.dateien a{color:var(--mute);align-self:flex-start;transition:color .25s}
.dateien a:hover{color:var(--akzent)}
.dateien .leer{color:var(--mute)}

/* info */
.info-block{flex:0 0 46%;max-width:46%;font-size:clamp(14px,1.35vw,18px);line-height:1.5;letter-spacing:-.01em}
.info-block p{margin-bottom:1.1em}
.info-zeit{flex:1;padding-top:6px}
.mono-liste{
  font-family:'IBM Plex Mono',monospace;font-size:13px;line-height:2.1;color:var(--mute);
}
.mono-liste .jahr{display:inline-block;min-width:110px;color:var(--ink)}

/* ---------- inspo: die rechte bildschirmhälfte ----------
   scrollt für sich allein, ein bild pro bildschirm.
   die seite links bleibt stehen. inhalt aus js/inspo.js
--------------------------------------------------------- */
.inspo{
  position:fixed;top:0;right:0;width:48vw;height:100vh;z-index:5;
  background:var(--akzent);
  overflow-y:auto;overflow-x:hidden;
  scroll-snap-type:y mandatory;
  opacity:0;transition:opacity 1.2s ease,background-color .6s ease;
  scrollbar-width:none;-ms-overflow-style:none;
}
.inspo::-webkit-scrollbar{display:none}
.inspo.an{opacity:1}
/* sobald man zu scrollen beginnt, weicht die farbfläche schwarz —
   wie beim rest der bilder. zurück oben = wieder farbig. */
body.inspo-gescrollt .inspo{background:var(--paper)}

/* erster bildschirm bleibt frei — man scrollt einmal ganz durch,
   danach füllt jedes bild die rechte hälfte komplett */
.inspo-vorspann{height:100vh;scroll-snap-align:start}

.inspo figure{position:relative;margin:0;height:100vh;scroll-snap-align:start}
/* standard: ganzes bild sichtbar (wichtig bei plänen).
   fotos, die die fläche füllen dürfen, bekommen in
   js/inspo.js  fuellen: true  — dann wird beschnitten. */
.inspo figure img{
  display:block;width:100%;height:100%;object-fit:contain;
  user-select:none;-webkit-user-drag:none;
}
.inspo figure.fuellen img{object-fit:cover}
.inspo figcaption{
  position:absolute;left:26px;bottom:24px;
  font-family:'IBM Plex Mono',monospace;font-size:10.5px;
  color:var(--paper);background:var(--ink);padding:3px 8px;
}

/* hinweis unten, rechts der mitte */
.inspo-hinweis{
  position:fixed;bottom:40px;left:calc(52vw + 26px);z-index:30;
  display:flex;flex-direction:column;gap:8px;
  font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--paper);letter-spacing:.03em;
  opacity:0;transition:opacity 1.2s ease,color .6s ease;pointer-events:none;
}
body.inspo-gescrollt .inspo-hinweis{color:var(--mute)}
.inspo-hinweis.an{opacity:1}
.inspo-hinweis.weg{opacity:0}
.inspo-pfeil{font-size:14px;line-height:1;animation:pfeil 2.4s ease-in-out infinite}
@keyframes pfeil{0%,100%{transform:translateY(0);opacity:.45}50%{transform:translateY(6px);opacity:1}}

/* ---------- bild folgt dem cursor ---------- */
.peek{
  position:fixed;top:0;left:0;width:min(26vw,380px);
  pointer-events:none;z-index:150;opacity:0;transition:opacity .3s ease;
}
/* hover-vorschau immer schwarzweiss, unabhängig vom akzent */
.peek img{display:block;width:100%;height:auto;filter:grayscale(1)}
.peek .cap{
  font-family:'IBM Plex Mono',monospace;font-size:10.5px;
  color:var(--paper);background:var(--ink);display:inline-block;padding:3px 8px;
}
.peek.is-on{opacity:1}

/* ---------- overlay: bild gross, hintergrund bleibt sichtbar ---------- */
.overlay{position:fixed;inset:0;z-index:500;display:none;align-items:center;justify-content:center}
.overlay.is-open{display:flex}
.overlay img{max-width:88vw;max-height:84vh;user-select:none;-webkit-user-drag:none}
.overlay .ocap{
  position:absolute;bottom:14px;left:50%;transform:translateX(-50%);
  font-family:'IBM Plex Mono',monospace;font-size:10.5px;color:var(--mute);white-space:nowrap;
}
.overlay .opfeil{
  position:absolute;top:50%;transform:translateY(-50%);
  font-family:'IBM Plex Mono',monospace;font-size:22px;color:var(--mute);
  padding:14px 18px;transition:color .2s;pointer-events:auto;
}
.overlay .opfeil:hover{color:var(--akzent)}
.overlay .opfeil-links{left:8px}
.overlay .opfeil-rechts{right:8px}

/* ---------- inspo gibt es nur am desktop ----------
   schmale fenster und alle geräte ohne maus (handy, tablet)
   bekommen ausschliesslich die linke textseite.
--------------------------------------------------------- */
@media (max-width:999px),(hover:none){
  .inspo,.inspo-hinweis,.nur-desktop{display:none !important}
}

/* ---------- handy ---------- */
@media(max-width:700px){
  .text{padding:22vh 20px 80px;max-width:none}
  .text p{font-size:16px}
  .seite{height:auto;padding:100px 20px 60px}
  .spalten{flex-direction:column;gap:30px}
  .kopf,.info-block{flex:none;max-width:none}
  .peek{display:none}
  .overlay .opfeil{display:none}
}
