/* 08 Typo Picchu – Schriftmuster zum Ausprobieren
   Die Innenräume der Buchstabenbilder sind in #f8f3eb gefüllt, deshalb liegen
   Szene und Schriftprobe immer auf genau dieser Fläche. */
#typopicchu{--tp-grund:#f8f3eb;--tp-tinte:#2b2320}

/* Auftakt: Alphabet-Raster */
.tp-szene{background:var(--tp-grund)}
.tp-fix{display:grid;place-items:center;padding:calc(var(--kopfhoehe) + 2svh) var(--rand) 4.5rem;background:var(--tp-grund)}
.tp-raster{--tp-h:min(15.5svh,13.5vw);display:flex;flex-direction:column;align-items:center;gap:calc(var(--tp-h) * .14);cursor:zoom-in}
.tp-reihe{display:flex;align-items:center;justify-content:center;gap:calc(var(--tp-h) * .1)}
.tp-b{height:calc(var(--tp-h) * var(--k));width:auto;max-width:none;flex:none;user-select:none;-webkit-user-drag:none}
.tp-aktiv .tp-b{will-change:transform}
.tp-fix__bu{position:absolute;left:var(--rand);bottom:1.6rem}

/* Schriftprobe */
.tp-probe{--tp-ph:clamp(5.5rem,17vw,15rem);padding-top:var(--abstand);padding-bottom:calc(var(--abstand) * .6)}
.tp-probe__marke{padding-bottom:.9rem;border-bottom:1px solid var(--linie)}
/* Aufforderung links, Eingabefeld füllt den Rest, Hinweis rechts unter der Linie */
.tp-probe__eingabe{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:clamp(1rem,2.2vw,2rem);align-items:baseline;
  padding-top:clamp(1.25rem,4vh,2.5rem);margin-bottom:clamp(1.5rem,5vh,3.5rem)}
.tp-probe__label{font-size:clamp(1.5rem,2.7vw,2.9rem)}
.tp-probe__hinweis{grid-column:2;margin-top:.6rem}
.tp-probe__buehne{position:relative;height:var(--tp-ph);display:flex;align-items:center;cursor:text}
.tp-probe__zeile{display:flex;align-items:center;gap:calc(var(--tp-ph) * .06);transform-origin:0 50%;transition:transform .7s var(--weich);white-space:nowrap}
.tp-probe__zeile img{height:calc(var(--tp-ph) * var(--k));width:auto;max-width:none;flex:none}
.tp-probe__zeile .tp-luecke{display:block;flex:none;width:calc(var(--tp-ph) * .34);height:1px}
.tp-probe__feld{
  display:block;width:100%;min-width:0;padding:.2em 0 .25em;
  border:0;border-bottom:2px solid var(--fg);border-radius:0;background:transparent;color:var(--fg);caret-color:var(--fg);
  font-family:var(--grotesk);font-size:clamp(1.5rem,2.7vw,2.9rem);font-variation-settings:"wdth" 70,"wght" 700;letter-spacing:.06em;text-transform:uppercase;line-height:1.1;
  transition:border-color .4s var(--weich);-webkit-appearance:none;appearance:none;
}
.tp-probe__feld::placeholder{color:var(--leise);letter-spacing:0;text-transform:none;font-family:var(--serif);font-style:italic;font-weight:300;font-variation-settings:normal}
.tp-probe__feld:focus{outline:none}
.tp-probe__feld:focus-visible{outline:none;box-shadow:0 2px 0 0 var(--fg)}
@media (max-width:760px){
  .tp-probe__eingabe{grid-template-columns:minmax(0,1fr);row-gap:.5rem}
  .tp-probe__hinweis{grid-column:1}
}

/* Kontur und Shirt */
.tp-paar{align-items:end}
.tp-kontur{grid-column:1 / span 7}
.tp-shirt{grid-column:9 / span 4;margin-bottom:clamp(2rem,8vh,6rem)}

@media (max-width:760px){
  /* am Handy brechen die Buchstaben frei um (5–6 je Zeile), so werden sie größer */
  .tp-raster{--tp-h:min(9.5svh,17.5vw);flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;max-width:22.5rem;row-gap:calc(var(--tp-h) * .16);column-gap:calc(var(--tp-h) * .1)}
  .tp-reihe{display:contents}
  .tp-fix__bu{bottom:1.25rem}
  .tp-kontur{grid-column:1 / -1}
  .tp-shirt{grid-column:3 / -1;margin:3rem 0 0}
}

/* Das Aufdecken aus dem Kern startet mit scale(1.18); clip-path begrenzt nur die Darstellung,
   nicht die Layoutbreite. overflow:clip verhindert waagerechtes Überlaufen am Handy. */
.tp-paar .bild{overflow:clip}
