/* vivekaweb · Portfolio (/portfolio, 20.11.2026). Baut auf tokens.css, styles.css (Kacheln, Zahlen) und unterseiten.css (Kopf, Schlussband)
   auf. Gliederung wie auf der Startseite: eine ruhige Fläche in Nebel 2 trägt die Arbeiten, keine Karten um Text, keine Einblendungen. */

/* ---------- Kopf: Engadin in der Blauen Stunde (Konzept «Stille Schweiz»), rechts ARDOS ---------- */
.uhero--engadin { --bild-1600: url("../img/engadin-quer-1600.webp"); --bild-2400: url("../img/engadin-quer-2400.webp"); --bild-hoch: url("../img/engadin-hoch-1080.webp"); --links: .45; }   /* .45 statt .35: drittes Merkmal im Kopf lag über dem Schnee bei 4:1 (Qualitätsprüfung 22.11.2026) */
.portfolio-ardos { width: min(100%, 36rem); margin-inline: auto 0; }
.portfolio-ardos figcaption { text-shadow: none; }
@media (max-width: 960px) { .portfolio-ardos { margin-inline: 0; } }

/* Hinweis nach unten (20.11.2026, zweite Fassung nach «viel deutlicher und mittig»): mittig die Marke «Weitere Arbeiten», darunter ein
   Faden über die Bildkante, der im hellen Teil weiterläuft. Ein Lichtpunkt gleitet in langen Abständen den Faden hinunter; kein Pfeil,
   kein Hüpfen. Bei reduzierter Bewegung steht alles still. Die Marke selbst ist nie ausgeblendet: Sie hängt an keiner Animation. */
.uhero--engadin { padding-bottom: clamp(8.5rem, 6.5rem + 4vw, 10.5rem); }
.uhero__weiter { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; justify-content: center; pointer-events: none; }
.uhero__weiter a { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-decoration: none; color: var(--on-dark); }
.uhero__weiter-marke {
  display: inline-flex; align-items: baseline; gap: .45rem; padding: .6rem 1.15rem .62rem; border-radius: var(--r-pill);
  border: 1px solid rgb(242 245 248 / .45); background: rgb(7 17 31 / .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 1rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1.2;
  transition: background-color var(--dur-mid, .25s) var(--ease-out), border-color var(--dur-mid, .25s);
}
.uhero__weiter-marke b { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .uhero__weiter a:hover .uhero__weiter-marke { background: rgb(7 17 31 / .5); border-color: rgb(242 245 248 / .8); } }
.uhero__weiter a:focus-visible { outline: none; }
.uhero__weiter a:focus-visible .uhero__weiter-marke { outline: 2px solid var(--on-dark); outline-offset: 3px; }
.uhero__weiter-faden {
  position: relative; display: block; width: 2px; height: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); border-radius: 2px;
  background: linear-gradient(rgb(242 245 248 / .9), rgb(242 245 248 / .55)); transform-origin: top;
}
.uhero__weiter-faden::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 3px rgb(142 197 255 / .75); opacity: 0;
}
.portfolio__faden {
  display: block; width: 2px; height: calc(var(--section) * .6); margin: calc(-1 * var(--section)) auto calc(var(--section) * .4);
  border-radius: 2px; background: linear-gradient(rgb(28 72 123 / .6), rgb(28 72 123 / 0)); transform-origin: top;
}
@media (prefers-reduced-motion: no-preference) {
  .uhero__weiter-faden { animation: faden-zeichnen 1s var(--ease-out) 1.1s both; }
  .uhero__weiter-faden::after { animation: faden-licht 4.5s ease-in-out 2.4s infinite; }
  .portfolio__faden { animation: faden-zeichnen .9s var(--ease-out) 1.9s both; }
}
@keyframes faden-zeichnen { from { transform: scaleY(0); } }
/* Der Lichtpunkt läuft in 1,6 s hinunter und verschwindet an der Bildkante, dann Pause bis zum nächsten Lauf */
@keyframes faden-licht {
  0% { top: 0; opacity: 0; }
  6% { opacity: 1; }
  32% { opacity: 1; }
  36% { top: calc(100% - 4px); opacity: 0; }
  100% { top: calc(100% - 4px); opacity: 0; }
}

/* ---------- Kundenseiten ---------- */
.portfolio__raster {
  list-style: none; margin: 0; padding: clamp(.9rem, .6rem + 1vw, 1.5rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, .6rem + 1vw, 1.5rem);
  border-radius: var(--r-lg); background: var(--fog-2);
}
.projekt { position: relative; margin: 0; }
.projekt .tile { display: block; }
/* Paar: Handy-Ansicht unten rechts vor dem Computer-Bild, wie bei ARDOS */
.projekt__handy {
  position: absolute; right: 5%; bottom: -4%; width: 21%; aspect-ratio: 420 / 603; object-fit: cover; object-position: top;
  border: .28rem solid #0b1018; border-radius: 1rem; box-shadow: 0 0 0 1px #6b7686, 0 18px 36px -16px rgb(7 17 31 / .6);
}
.projekt--paar { margin-bottom: 4%; }   /* Platz für das überstehende Handy */

.portfolio__handys { margin-top: clamp(2.5rem, 1.5rem + 2.5vw, 4rem); }
.portfolio__unter { margin: 0 0 1.25rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); }
.portfolio__handyreihe {
  list-style: none; margin: 0; padding: clamp(.9rem, .6rem + 1vw, 1.5rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.9rem, .6rem + 1vw, 1.5rem);
  border-radius: var(--r-lg); background: var(--fog-2);
}
.portfolio__handyreihe .tile { display: block; }
.portfolio__zahlen { padding-inline: 0; }

@media (max-width: 640px) {
  .portfolio__raster { grid-template-columns: minmax(0, 1fr); padding: .6rem; gap: 1.25rem; }
  .portfolio__handyreihe { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .6rem; gap: .6rem; }
  .projekt__handy { border-width: .2rem; border-radius: .75rem; }
}

/* ---------- Vor dem Kauf sehen: zwei Teile, getrennt durch eine Haarlinie ---------- */
.portfolio-vorher { background: var(--fog-2); }
.portfolio-vorher__raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.portfolio-vorher__teil { padding: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(1.25rem, .5rem + 3vw, 3.5rem) 0 0; }
.portfolio-vorher__teil + .portfolio-vorher__teil { padding-inline: clamp(1.25rem, .5rem + 3vw, 3.5rem) 0; border-left: 1px solid var(--line); }
.portfolio-vorher__bild { display: flex; align-items: flex-end; height: clamp(13rem, 9rem + 10vw, 19rem); margin-bottom: 1.75rem; }
.portfolio-vorher__bild img {
  display: block; max-height: 100%; width: auto; max-width: 100%; border-radius: 10px; background: var(--white);
  box-shadow: 0 1px 2px rgb(12 26 46 / .08), 0 16px 32px -18px rgb(12 26 46 / .35);
}
.portfolio-vorher__titel { margin: 0 0 .6rem; font-size: clamp(1.35rem, 1.15rem + .6vw, 1.7rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.portfolio-vorher__teil p { max-width: 32rem; margin: 0 0 1.1rem; color: var(--text-2); line-height: 1.6; }

@media (max-width: 760px) {
  .portfolio-vorher__raster { grid-template-columns: minmax(0, 1fr); }
  .portfolio-vorher__teil, .portfolio-vorher__teil + .portfolio-vorher__teil { padding: 2rem 0 0; border-left: 0; }
  .portfolio-vorher__teil + .portfolio-vorher__teil { margin-top: 2rem; border-top: 1px solid var(--line); }
}
