/* ==========================================================================
   PXEL · Stylesheet
   Alle Werte stehen als Variablen am Anfang dieser Datei.
   Aufbau: 1 Tokens · 2 Basis · 3 Typografie · 4 Layout · 5 Bausteine
           6 Header/Footer · 7 Hero + MacBook · 8 Abschnitte · 9 Bewegung
   ========================================================================== */

/* ---------- Schriften (lokal, variabel) ---------- */
@font-face{
  font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: optional; /* optional + Preload: kein Schrift-Wechsel nach dem ersten Zeichnen, bessere Ladezeit */
}
@font-face{
  font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- 1 · Tokens ---------- */
:root{
  /* Graustufen */
  --white: #ffffff;
  --g50:  #f6f6f6;   /* Flächen */
  --g100: #ededed;   /* Flächen, Hover */
  --g200: #e0e0e0;   /* Linien */
  --g300: #c6c6c6;   /* Linien stark, deaktiviert */
  --g500: #6b6b6b;   /* Sekundärtext auf Weiss (5.3:1) */
  --g700: #3d3d3d;   /* Fliesstext stark */
  --ink:  #0f0f10;   /* Text, Buttons, dunkle Flächen (fast schwarz) */
  --soft-black: #17171a;     /* weiches Schwarz für Hero und Header */
  --ink-2:#1a1a1c;   /* Fläche auf Dunkel */
  --on-dark: #f4f4f4;        /* Text auf Dunkel */
  --on-dark-muted: #a6a6a6;  /* Sekundärtext auf Dunkel (7.6:1) */
  --line-dark: rgba(255,255,255,.14);

  /* Schrift */
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-display: clamp(2.5rem, 5.4vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 4.6vw, 4rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.75rem);
  --fs-h3: 1.375rem;
  --fs-lead: clamp(1.0625rem, 1.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* Abstände (4-px-Raster) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section: clamp(72px, 10vw, 152px);

  /* Raster */
  --max: 1240px;
  --margin: clamp(20px, 4vw, 48px);
  --gutter: 24px;

  /* Radien */
  --r-sm: 10px; --r-md: 16px; --r-lg: 28px; --r-pill: 999px;

  /* Bewegung */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 200ms;   /* Hover, Fokus */
  --t-med: 400ms;    /* Menü, Akkordeon */
  --t-slow: 700ms;   /* Einblenden beim Scrollen */

  /* Bildstil: Bilder immer in Farbe. Mit "grayscale(1)" wären Übersichten schwarz-weiss */
  --img-filter: none;

  --header-h: 72px;
}

/* ---------- 2 · Basis ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body{
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg{ display: block; max-width: 100%; }
img{ height: auto; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button, input, select, textarea{ font: inherit; color: inherit; }
button{ background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote{ margin: 0; }
::selection{ background: var(--ink); color: var(--white); }
:focus-visible{ outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible{ outline-color: var(--white); }
.skip-link{
  position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px;
  background: var(--ink); color: var(--white); border-radius: var(--r-sm); transition: top var(--t-fast) var(--ease);
}
.skip-link:focus{ top: 12px; }
.sr-only{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3 · Typografie ---------- */
h1, h2, h3, h4{ font-weight: 500; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
h1{ font-size: var(--fs-h1); }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.015em; }
h4{ font-size: 1rem; line-height: 1.4; letter-spacing: -.005em; font-weight: 600; }
.display{ font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.04em; }
.lead{ font-size: var(--fs-lead); line-height: 1.55; color: var(--g500); max-width: 56ch; text-wrap: pretty; }
.muted{ color: var(--g500); }
.small{ font-size: var(--fs-small); }
.label{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: var(--g500);
}
.label::before{ content: ""; width: 20px; height: 1px; background: currentColor; }
.label.no-line::before{ display: none; }
.on-dark .label{ color: var(--on-dark-muted); }
.prose p + p{ margin-top: 1em; }
.prose a, .text-link{ text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color var(--t-fast); }
.prose a:hover, .text-link:hover{ text-decoration-color: transparent; }

/* ---------- 4 · Layout ---------- */
.container{ width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.section{ padding-block: var(--section); }
.section-tight{ padding-block: calc(var(--section) * .6); }
.section-soft{ background: var(--g50); }
.grid{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s7); }
.section-head{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s5); margin-bottom: var(--s8); align-items: end; }
.section-head > :first-child{ grid-column: span 7; }
.section-head > :last-child:not(:first-child){ grid-column: 9 / -1; }
.section-head h2{ margin-top: var(--s5); }
.rule{ border: 0; border-top: 1px solid var(--g200); margin: 0; }

/* ---------- 5 · Bausteine ---------- */
/* Buttons */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 500; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn svg{ width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg{ transform: translateX(3px); }
.btn-primary{ background: var(--ink); color: var(--white); }
.btn-primary:hover{ background: var(--g700); }
.btn-outline{ border-color: var(--g300); color: var(--ink); }
.btn-outline:hover{ border-color: var(--ink); }
.btn-light{ background: var(--white); color: var(--ink); }
.btn-light:hover{ background: var(--g200); }
.btn-outline-light{ border-color: rgba(255,255,255,.28); color: var(--on-dark); }
.btn-outline-light:hover{ border-color: var(--white); }
.btn-small{ min-height: 40px; padding: 0 18px; font-size: var(--fs-small); }
.btn-row{ display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* Pfeil-Link */
.arrow-link{ display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding-bottom: 4px; border-bottom: 1px solid currentColor; transition: gap var(--t-fast) var(--ease); }
.arrow-link svg{ width: 16px; height: 16px; }
.arrow-link:hover{ gap: 12px; }

/* Bilder */
.media{ position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--g100); }
.media img{ width: 100%; height: 100%; object-fit: cover; }
.ratio-3-2{ aspect-ratio: 3 / 2; } .ratio-4-5{ aspect-ratio: 4 / 5; } .ratio-16-10{ aspect-ratio: 16 / 10; } .ratio-16-9{ aspect-ratio: 16 / 9; }

/* Arbeiten-Kachel */
.work{ display: block; }
.work .media img{ filter: var(--img-filter); transition: filter var(--t-med) var(--ease), transform var(--t-slow) var(--ease); }
.work:hover .media img, .work:focus-visible .media img{ filter: none; transform: scale(1.025); }
.work-meta{ display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); margin-top: var(--s4); }
.work-meta h2, .work-meta h3{ font-size: 1.25rem; letter-spacing: -.015em; }
.work-meta span{ font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--g500); white-space: nowrap; }
.work-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) var(--gutter); }

/* Leistungs-Zeilen */
.service{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s5); align-items: start; padding: clamp(24px, 3.2vw, 44px); margin-bottom: var(--s4); background: var(--white); border: 1px solid var(--g200); border-radius: var(--r-lg); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-med) var(--ease); }
.service:last-child{ margin-bottom: 0; }
.service:hover{ border-color: var(--ink); background: var(--g50); transform: translateY(-2px); }
.service-num{ grid-column: span 1; justify-self: start; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .06em; color: var(--ink); padding: 6px 10px; border-radius: var(--r-pill); background: var(--g100); line-height: 1; }
.service-title{ grid-column: span 4; }
.service-title h3{ font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.12; letter-spacing: -.03em; }
.service-body{ grid-column: span 4; color: var(--g500); }
.service-body > p{ color: var(--g700); }
.service-side{ grid-column: 10 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.price{ font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--g700); padding: 8px 12px; background: var(--g100); border-radius: var(--r-pill); white-space: nowrap; }
.service .arrow-link{ padding: 12px 20px; border: 1px solid var(--ink); border-radius: var(--r-pill); background: var(--ink); color: var(--white); transition: gap var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.service .arrow-link:hover{ background: transparent; color: var(--ink); }
.checks{ margin-top: var(--s5); display: grid; gap: 10px; }
.checks li{ position: relative; padding-left: 28px; color: var(--g700); font-size: .9375rem; }
.checks li::before{ content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Zwei grosse Angebots-Karten (Startseite) */
.offer-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.offer-card{ display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--g200); border-radius: var(--r-lg); background: var(--white); transition: border-color var(--t-fast) var(--ease); }
.offer-card:hover{ border-color: var(--ink); }
.offer-card .num{ font-family: var(--mono); font-size: var(--fs-small); color: var(--g500); }
.offer-card h3{ font-size: clamp(1.625rem, 2.6vw, 2.25rem); letter-spacing: -.03em; margin-top: var(--s8); }
.offer-card p{ color: var(--g500); margin-top: var(--s4); max-width: 44ch; }
.offer-card ul{ margin-top: var(--s5); border-top: 1px solid var(--g200); }
.offer-card li{ display: flex; justify-content: space-between; gap: var(--s4); padding: 14px 0; border-bottom: 1px solid var(--g200); font-weight: 500; }
.offer-card li span{ font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--g500); font-weight: 400; align-self: center; }
.offer-card .arrow-link{ margin-top: var(--s6); align-self: flex-start; }

/* Ablauf */
.steps{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); counter-reset: step; }
.step{ padding-top: var(--s5); border-top: 1px solid var(--ink); }
.step::before{ counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: var(--fs-small); color: var(--g500); }
.step h3{ margin-top: var(--s6); font-size: 1.25rem; }
.step p{ margin-top: var(--s3); color: var(--g500); font-size: .9375rem; }

/* Fakten-Liste (Projektseiten) */
.facts{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); padding-block: var(--s5); border-block: 1px solid var(--g200); }
.facts dt{ font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--g500); }
.facts dd{ margin: 6px 0 0; font-weight: 500; }

/* Akkordeon (FAQ) */
.faq{ border-top: 1px solid var(--g200); }
.faq details{ border-bottom: 1px solid var(--g200); }
.faq summary{ display: flex; justify-content: space-between; align-items: center; gap: var(--s5); padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{ content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--ink) 0 0) center / 100% 1px no-repeat, linear-gradient(var(--ink) 0 0) center / 1px 100% no-repeat; transition: transform var(--t-med) var(--ease); }
.faq details[open] summary::after{ transform: rotate(45deg); }
.faq details p{ padding: 0 0 24px; color: var(--g500); max-width: 62ch; }
@supports selector(::details-content){
  .faq details{ interpolate-size: allow-keywords; }
  .faq details::details-content{ height: 0; overflow: clip; opacity: 0; transition: height var(--t-med) var(--ease), opacity var(--t-med) var(--ease), content-visibility var(--t-med) allow-discrete; }
  .faq details[open]::details-content{ height: auto; opacity: 1; }
}

/* Formular */
.form{ display: grid; gap: var(--s5); }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.field label{ display: block; font-size: var(--fs-small); font-weight: 500; margin-bottom: 8px; }
.field input, .field select, .field textarea{
  width: 100%; min-height: 52px; padding: 14px 16px; background: var(--white);
  border: 1px solid var(--g300); border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea{ min-height: 160px; resize: vertical; line-height: 1.55; }
.field select{ appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f10' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input::placeholder, .field textarea::placeholder{ color: var(--g500); }
.field input:hover, .field select:hover, .field textarea:hover{ border-color: var(--g500); }
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--g200); }
.field .is-invalid{ border-color: var(--ink); border-width: 2px; }
.check{ display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: var(--fs-small); color: var(--g700); }
.check input{ width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.form-status{ font-size: var(--fs-small); color: var(--g500); min-height: 1.4em; }
.form-status.is-error{ color: var(--ink); font-weight: 500; }
.form-success{ display: none; padding: var(--s7) 0; }
.form-success.is-visible{ display: block; }
.form.is-hidden{ display: none; }
.hp{ position: absolute; left: -9999px; }

/* Kontakt-Liste */
.contact-list{ border-top: 1px solid var(--g200); }
.contact-list > div{ display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); padding: 18px 0; border-bottom: 1px solid var(--g200); }
.contact-list dt{ font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--g500); padding-top: 5px; }
.contact-list dd{ margin: 0; font-weight: 500; }

/* Lightbox */
.lightbox{ position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 64px 20px; background: rgba(15,15,16,.96); opacity: 0; visibility: hidden; transition: opacity 250ms var(--ease), visibility 0s linear 250ms; overscroll-behavior: contain; }
.lightbox.is-open{ opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img{ max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); transition: opacity 250ms var(--ease); }
.lightbox img.is-loading{ opacity: 0; }
.lightbox button{ position: absolute; width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); border-radius: 50%; border: 1px solid var(--line-dark); transition: border-color var(--t-fast); }
.lightbox button:hover{ border-color: var(--white); }
.lightbox button svg{ width: 20px; height: 20px; }
.lightbox .lb-close{ top: 16px; right: 16px; } .lightbox .lb-prev{ left: 16px; top: 50%; margin-top: -24px; } .lightbox .lb-next{ right: 16px; top: 50%; margin-top: -24px; }
.lightbox .lb-cap{ position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: var(--on-dark-muted); font-size: var(--fs-small); }

/* ---------- 6 · Header & Footer ---------- */
.site-header{ position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease); }
.site-header.is-scrolled{ border-bottom-color: var(--g200); }
.header-inner{ height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.logo img{ height: 20px; width: auto; }
.home .site-header .logo{ transition: opacity var(--t-med) var(--ease); }
.js .home.hero-in-view .site-header .logo{ opacity: 0; pointer-events: none; }
.nav{ display: flex; align-items: center; gap: var(--s6); }
.nav a:not(.btn){ font-size: .9375rem; font-weight: 500; color: var(--g500); transition: color var(--t-fast) var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"]{ color: var(--ink); }
.menu-toggle{ display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.menu-toggle span, .menu-toggle span::before{ content: ""; position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform var(--t-med) var(--ease); }
.menu-toggle span{ top: 18px; } .menu-toggle span::before{ left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] span{ transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::before{ transform: translateY(-7px) rotate(-90deg); }

.site-footer{ padding: var(--s9) 0 var(--s6); border-top: 1px solid var(--g200); }
.footer-top{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s7) var(--gutter); }
.footer-brand{ grid-column: span 6; }
.footer-brand img{ height: 28px; width: auto; }
.footer-brand p{ margin-top: var(--s5); color: var(--g500); max-width: 34ch; }
.footer-col{ grid-column: span 3; }
.footer-col h2{ font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--g500); line-height: 1; margin-bottom: var(--s5); }
.footer-col li + li{ margin-top: 10px; }
.footer-col a{ font-weight: 500; }
.footer-col a:hover{ text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s9); padding-top: var(--s5); border-top: 1px solid var(--g200); font-size: var(--fs-small); color: var(--g500); }
.footer-bottom nav{ display: flex; flex-wrap: wrap; gap: var(--s5); }
.footer-bottom a:hover{ color: var(--ink); }
.design-by{ display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.design-by img{ height: 13px; width: auto; }

/* ---------- 7 · Hero (Karten-Fächer) + Showcase mit MacBook ---------- */
.showcase-wrap{ padding: 0; background: var(--white); margin-top: clamp(32px, 5vw, 80px); }
.showcase{
  position: relative; overflow: hidden; border-radius: 0; background: var(--soft-black); color: var(--on-dark);
  min-height: min(640px, 80svh);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; column-gap: var(--gutter);
  padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 96px);
}
.showcase::before{ content: ""; position: absolute; right: -10%; top: 50%; width: 70%; aspect-ratio: 1; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(255,255,255,.075), transparent); pointer-events: none; }
.showcase-copy{ position: relative; z-index: 2; }
.showcase-copy .label{ color: var(--on-dark-muted); }
.showcase h2{ margin-top: var(--s4); font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.06; letter-spacing: -.04em; }
.showcase-copy p{ margin-top: var(--s5); max-width: 46ch; color: var(--on-dark-muted); font-size: var(--fs-lead); line-height: 1.55; }
.showcase .btn-row{ margin-top: var(--s6); }
.showcase-visual{ position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; min-width: 0; }

/* Handy (CSS): Grösse über die Breite von .phone steuern. Format 1 : 2.07 wie ein aktuelles iPhone.
   Bildschirm = Statusleiste (8 % der Breite) + Video. Damit das Video ins iPhone-Format passt, werden oben 0.8 %
   und unten 1 % (nur leerer Rand, kein Inhalt) abgeschnitten und es wird um rund 2 % gestaucht (nicht sichtbar). */
.showcase-visual{ flex-direction: column; gap: var(--s6); }
.app-stage{ --pw: clamp(220px, 19vw, 290px); --glow: 47, 93, 90; position: relative; width: var(--pw); }
.app-glow{ position: absolute; left: 50%; top: 50%; width: 240%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--glow), .7), rgba(var(--glow), .2) 45%, transparent 72%); pointer-events: none; }
/* Farbe wechselt pro Kapitel weich (statt zu springen); ohne Blur-Filter, das spart Rechenzeit */
@supports (color: color-mix(in srgb, red, blue)){
  .app-glow{ color: rgb(var(--glow)); background: radial-gradient(closest-side, color-mix(in srgb, currentColor 70%, transparent), color-mix(in srgb, currentColor 20%, transparent) 45%, transparent 72%); transition: color 1200ms var(--ease); }
}
.phone-tilt{ position: relative; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 600ms var(--ease); transform-style: preserve-3d; will-change: transform; }
.phone{ position: relative; width: var(--pw); height: calc(var(--pw) * 2.07); padding: calc(var(--pw) * .036); border-radius: calc(var(--pw) * .17); background: linear-gradient(160deg, #46464b 0%, #17171a 38%, #2c2c30 100%); box-shadow: 0 0 0 1px #5d5d62, inset 0 0 0 2px #0b0b0c, inset 0 0 0 4px #2a2a2e, 0 50px 90px -20px rgba(0,0,0,.75), 0 30px 50px -30px rgba(0,0,0,.6); }
.phone::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, transparent 28%, transparent 70%, rgba(255,255,255,.05) 100%); pointer-events: none; }
.phone-screen{ position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * .135); background: #f9f5f0; isolation: isolate; }
.phone-status{ position: relative; flex: none; height: calc(var(--pw) * .928 * .08); display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 11%; color: #141414; font-family: -apple-system, "SF Pro Text", var(--sans); font-weight: 600; font-size: calc(var(--pw) * .047); letter-spacing: -.01em; }
.phone-island{ position: absolute; left: 50%; top: 12%; width: 30%; height: 76%; transform: translateX(-50%); border-radius: 999px; background: #050506; }
.phone-icons{ display: flex; align-items: center; gap: calc(var(--pw) * .014); }
.phone-icons svg{ height: calc(var(--pw) * .036); width: auto; fill: currentColor; }
.phone-icons svg:last-child{ height: calc(var(--pw) * .04); }
.phone-view{ position: relative; flex: 1 1 auto; min-height: 0; }
.phone-view video{ position: absolute; left: 0; top: -0.815%; width: 100%; height: 101.835%; object-fit: fill; }
.phone-btn{ position: absolute; width: 1.1%; border-radius: 2px; background: #2e2e32; }
.phone-btn-a{ left: -1%; top: 17%; height: 4%; }
.phone-btn-b{ left: -1%; top: 24%; height: 7%; }
.phone-btn-c{ right: -1%; top: 27%; height: 11%; }
/* Tipp-Punkt: zeigt kurz, wo in der App «getippt» wird */
.phone-tap{ position: absolute; left: var(--tx, 50%); top: var(--ty, 50%); width: 15%; aspect-ratio: 1; margin: -7.5% 0 0 -7.5%; border-radius: 50%; background: rgba(20,20,20,.22); box-shadow: 0 0 0 2px rgba(255,255,255,.7); opacity: 0; transform: scale(.4); pointer-events: none; }
.phone-tap.is-on{ animation: tap 700ms var(--ease) both; }
@keyframes tap{ 0%{ opacity: 0; transform: scale(.4); } 30%{ opacity: 1; transform: scale(1); } 100%{ opacity: 0; transform: scale(1.6); } }

/* Schwebende Info-Karte neben dem Handy: wechselt mit jedem Kapitel */
.app-callout{ position: absolute; z-index: 3; top: var(--cy, 30%); display: flex; align-items: flex-start; gap: 12px; width: clamp(190px, 15vw, 230px); padding: 14px 16px; border-radius: 16px; background: rgba(28,28,31,.78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 50px -16px rgba(0,0,0,.7); color: var(--on-dark); line-height: 1.35; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity 500ms var(--ease), transform 600ms var(--ease); pointer-events: none; }
.app-callout.is-left{ right: calc(100% - 26px); }
.app-callout.is-right{ left: calc(100% - 26px); }
.app-callout.is-in{ opacity: 1; transform: none; }
.app-callout-num{ flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(var(--glow)); color: #fff; font-family: var(--mono); font-size: .6875rem; font-weight: 600; transition: background 1200ms var(--ease); }
.app-callout strong{ display: block; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }
.app-callout small{ display: block; margin-top: 3px; font-size: .8125rem; color: var(--on-dark-muted); }

/* Kapitel-Leiste unter dem Handy */
.app-player{ position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; width: min(100%, 380px); }
.app-play{ flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(255,255,255,.06); color: var(--on-dark); cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.app-play:hover{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.app-play svg{ width: 18px; height: 18px; fill: currentColor; }
.app-play .i-play, .app-play[aria-pressed="true"] .i-pause{ display: none; }
.app-play[aria-pressed="true"] .i-play{ display: block; }
.app-player-main{ flex: 1 1 auto; min-width: 0; }
.app-now{ display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: .9375rem; font-weight: 500; color: var(--on-dark); }
.app-now-num{ font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--on-dark-muted); }
.app-now-text{ display: none; margin: -6px 0 8px; font-size: .8125rem; line-height: 1.4; color: var(--on-dark-muted); }
.app-chapters{ display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.app-chapters li{ flex: var(--w, 1) 1 0; min-width: 0; }
.app-chapters button{ display: block; width: 100%; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.app-chapters button span{ position: relative; display: block; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.16); transition: height var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.app-chapters button:hover span{ height: 6px; background: rgba(255,255,255,.26); }
.app-chapters button span::after{ content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--on-dark); border-radius: inherit; }
.app-chapters button[aria-current="true"] span{ background: rgba(255,255,255,.24); }
.app-play:focus-visible, .app-chapters button:focus-visible{ outline: 2px solid var(--on-dark); outline-offset: 3px; border-radius: 8px; }
.app-credit{ margin: calc(var(--s3) * -1) 0 0; font-size: var(--fs-small); color: var(--on-dark-muted); }
.app-credit strong{ color: var(--on-dark); font-weight: 500; }

/* Hero: dunkler Block, Logo oben, Karten-Fächer, kurzer Text, ein Button */
.hero-wrap{ padding: 0; background: var(--soft-black); }
.hero{
  position: relative; overflow: hidden; border-radius: 0; background: var(--soft-black); color: var(--on-dark);
  min-height: min(860px, calc(100svh - var(--header-h)));
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(32px, 4.5vw, 64px) var(--gutter) clamp(32px, 4vw, 56px);
}
.hero::before{ content: ""; position: absolute; left: 50%; top: 52%; width: 90%; aspect-ratio: 1; transform: translate(-50%,-50%); background: radial-gradient(closest-side, rgba(255,255,255,.08), transparent); pointer-events: none; }
.hero-logo{ position: relative; z-index: 3; height: clamp(40px, 4.2vw, 60px); width: auto; }
.fan{ --cw: clamp(150px, 19vw, 280px); position: relative; z-index: 2; flex: 1 1 auto; width: 100%; min-height: calc(var(--cw) * 1.62); margin-top: clamp(16px, 3vw, 40px); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.fan:focus-visible{ outline: none; }
.fan:focus-visible .fan-card.is-centre{ outline: 2px solid var(--white); outline-offset: 4px; }
.fan-card{
  --o: 0; --a: max(var(--o), calc(var(--o) * -1));
  position: absolute; left: 50%; top: 50%; width: var(--cw); aspect-ratio: 4 / 5; margin: 0; border-radius: var(--r-md); overflow: hidden; background: #1c1c1e; cursor: pointer;
  transform: translate(-50%, -50%) translateX(calc(var(--o) * var(--cw) * .74)) translateY(calc(var(--a) * var(--a) * var(--cw) * .06)) rotate(calc(var(--o) * 6.5deg)) scale(calc(1 - var(--a) * .14));
  z-index: calc(10 - var(--a)); opacity: calc(1 - var(--a) * .16);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  transition: transform 900ms var(--ease), opacity 700ms var(--ease);
  will-change: transform, opacity;
}
.fan-card::after{ content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--a) * .2); transition: opacity 700ms var(--ease); pointer-events: none; }
.fan-card[data-far]{ opacity: 0; pointer-events: none; }
.fan-card img{ width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.fan-card:not(.is-centre):hover::after{ opacity: 0; }
.fan-card.is-centre{ transform: translate(-50%, -50%) rotate(0) scale(1.14); cursor: default; }
.hero-copy{ position: relative; z-index: 3; max-width: 40rem; margin-top: clamp(8px, 2vw, 24px); }
.hero-copy h1{ font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.12; letter-spacing: -.03em; }
.hero-copy p{ margin: var(--s3) auto 0; color: var(--on-dark-muted); font-size: var(--fs-body); max-width: 42ch; }
.hero-copy .btn{ margin-top: var(--s5); }

/* Startseite: ganz oben komplett schwarz, mit dem Scrollen wird der Header weiss */
.home .site-header{ transition: background-color var(--t-med) var(--ease), border-color var(--t-fast) var(--ease); }
.home .site-header:not(.is-scrolled){ background: var(--soft-black); -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .site-header:not(.is-scrolled) .nav a:not(.btn){ color: var(--on-dark-muted); }
.home .site-header:not(.is-scrolled) .nav a:not(.btn):hover, .home .site-header:not(.is-scrolled) .nav a[aria-current="page"]{ color: var(--white); }
.home .site-header:not(.is-scrolled) .nav .btn-primary{ background: var(--white); color: var(--ink); }
.home .site-header:not(.is-scrolled) .menu-toggle span, .home .site-header:not(.is-scrolled) .menu-toggle span::before{ background: var(--white); }
.home .site-header:not(.is-scrolled) .logo img{ filter: invert(1); }
@media (max-width: 760px){
  .home .site-header:not(.is-scrolled) .nav{ background: var(--soft-black); }
  .home .site-header:not(.is-scrolled) .nav a:not(.btn){ color: var(--white); border-bottom-color: rgba(255,255,255,.14); }
}

/* Scroll-Wisch: Hero schrumpft beim Scrollen, Inhalte werden hochgewischt */
.js .home .hero{ will-change: opacity; }
.js .section-wipe{ position: relative; }
.js .section-wipe::before{ content: ""; position: absolute; inset: 0; z-index: 5; background: var(--white); transform-origin: 50% 0; transform: scaleY(1); transition: transform 900ms var(--ease); pointer-events: none; }
.js .section-wipe.is-in::before{ transform: scaleY(0); transform-origin: 50% 100%; }
.section-soft.section-wipe::before{ background: var(--g50); }

/* ---------- 8 · Abschnitte ---------- */
.statement{ font-size: clamp(1.5rem, 3.1vw, 2.625rem); line-height: 1.22; letter-spacing: -.03em; font-weight: 500; max-width: 24em; text-wrap: balance; }
.statement span{ color: var(--g500); }

.about{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s7) var(--gutter); align-items: center; }
.about .media{ grid-column: span 5; }
.about .media img{ filter: var(--img-filter); }
.about-copy{ grid-column: 7 / -1; }
.about-copy h2{ margin: var(--s5) 0; }
.about-copy p{ color: var(--g500); max-width: 52ch; }
.about-copy p + p{ margin-top: 1em; }

/* Seitenkopf Unterseiten */
.page-head{ padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); }
.page-head h1{ margin-top: var(--s5); max-width: 16ch; }
.page-head .lead{ margin-top: var(--s5); }
.back-link{ display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--g500); margin-bottom: var(--s6); transition: color var(--t-fast); }
.back-link:hover{ color: var(--ink); }
.back-link svg{ width: 14px; height: 14px; }

.offer-section-head{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5) var(--gutter); margin-bottom: var(--s7); align-items: end; }
.offer-section-head > div{ grid-column: span 6; }
.offer-section-head h2{ margin-top: var(--s5); font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; }
.offer-section-head > p{ grid-column: 8 / -1; color: var(--g500); }

/* Projektseite */
.article{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6) var(--gutter); }
.article-block{ display: contents; }
.article-block h2{ grid-column: span 4; font-size: 1.375rem; letter-spacing: -.015em; line-height: 1.25; }
.article-block > div{ grid-column: 6 / -1; color: var(--g700); max-width: 60ch; }
.article hr{ grid-column: 1 / -1; }
.gallery{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.gallery a{ display: block; cursor: zoom-in; }
.gallery .media img{ transition: transform var(--t-slow) var(--ease); }
.gallery a:hover .media img{ transform: scale(1.03); }
.gallery .wide{ grid-column: span 2; }
.gallery .tall{ grid-row: span 2; }
.gallery .tall .media{ height: 100%; aspect-ratio: auto; }
.gallery .tall .media img{ object-position: 50% 30%; }

/* Rechtstexte */
.legal{ max-width: 720px; }
.legal h2{ font-size: 1.375rem; letter-spacing: -.015em; margin: var(--s7) 0 var(--s3); }
.legal p{ color: var(--g700); }

/* Kontaktseite */
.contact-grid{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s8) var(--gutter); }
.contact-grid > :first-child{ grid-column: span 4; }
.contact-grid > :last-child{ grid-column: 6 / -1; }

/* 404 */
.notfound{ min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--s9); }
.notfound .display{ font-size: clamp(5rem, 18vw, 12rem); }


/* ---------- 9 · Bewegung ---------- */
.js [data-reveal]{ opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in{ opacity: 1; transform: none; }
@keyframes hero-in{ from{ opacity: 0; transform: translateY(14px); } to{ opacity: 1; transform: none; } }
.js .hero-copy > *, .js .hero-logo{ animation: hero-in 800ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes mac-in{ from{ opacity: 0; transform: translateY(24px); } to{ opacity: 1; transform: none; } }
.js .showcase-copy > *{ animation: hero-in 800ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
.js .app-stage{ animation: mac-in 1100ms var(--ease) 200ms both; }
.js .app-player, .js .app-credit{ animation: hero-in 800ms var(--ease) 600ms both; }
@keyframes fan-in{ from{ opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
.js .fan-card:not([data-i="0"]){ animation: fan-in 900ms var(--ease) 120ms backwards; }

/* Weicher Übergang zwischen den Seiten (Chrome, Edge, Safari 18) */
@view-transition{ navigation: auto; }
::view-transition-old(root), ::view-transition-new(root){ animation-duration: 240ms; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .fan-card{ transition: transform 900ms var(--ease), opacity 700ms var(--ease), filter 700ms var(--ease) !important; }
  .js [data-reveal]{ opacity: 1; transform: none; }
  .js .section-wipe::before{ display: none; }
  @view-transition{ navigation: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1020px){
  .showcase{ grid-template-columns: 1fr; row-gap: var(--s7); min-height: 0; justify-items: center; }
  .showcase-copy{ justify-self: start; }
  .showcase::before{ right: -20%; top: 72%; width: 120%; }
  .section-head > :first-child, .section-head > :last-child:not(:first-child){ grid-column: 1 / -1; }
  .service-num{ grid-column: 1 / -1; }
  .service-title{ grid-column: span 12; }
  .service-body{ grid-column: span 8; }
  .service-side{ grid-column: 9 / -1; }
  .steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s7); }
  .about .media{ grid-column: span 5; } .about-copy{ grid-column: 6 / -1; }
  .offer-section-head > div, .offer-section-head > p{ grid-column: 1 / -1; }
  .article-block h2, .article-block > div{ grid-column: 1 / -1; }
  .article-block > div{ margin-top: calc(var(--s4) * -1); }
  .contact-grid > :first-child, .contact-grid > :last-child{ grid-column: 1 / -1; }
  .footer-brand{ grid-column: 1 / -1; } .footer-col{ grid-column: span 6; }
}
@media (max-width: 760px){
  :root{ --header-h: 64px; --gutter: 16px; }
  .menu-toggle{ display: block; }
  .nav{
    position: absolute; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: 99; flex-direction: column; align-items: flex-start; gap: 0;
    padding: var(--s5) var(--margin) var(--s7); background: var(--white); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .nav.is-open{ opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a:not(.btn){ width: 100%; padding: 18px 0; border-bottom: 1px solid var(--g200); font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); }
  .nav .btn{ margin-top: var(--s6); width: 100%; min-height: 52px; }
  .work-grid, .offer-grid{ grid-template-columns: 1fr; }
  .service-body, .service-side{ grid-column: 1 / -1; }
  .service{ row-gap: var(--s4); }
  .service-side{ flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: var(--s4); border-top: 1px solid var(--g200); }
  .about .media, .about-copy{ grid-column: 1 / -1; }
  .facts{ grid-template-columns: 1fr; gap: var(--s4); }
  .gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row{ grid-template-columns: 1fr; }
  .offer-card h3{ margin-top: var(--s7); }
  .showcase .btn{ flex: 1 1 auto; }
  .app-callout{ display: none; }
  .app-now-text{ display: block; min-height: 2.8em; }
  .app-stage{ --pw: clamp(220px, 62vw, 290px); }
  .fan{ --cw: clamp(130px, 38vw, 220px); }
}
@media (max-width: 520px){
  .steps{ grid-template-columns: 1fr; }
  .footer-col{ grid-column: 1 / -1; }
  .contact-list > div{ grid-template-columns: 1fr; gap: 4px; }
}


[hidden]{ display: none !important; }

/* ==========================================================================
   Portfolio (Übersicht): Filter, Highlight-Projekt, Karten, Abschluss
   ========================================================================== */
.pf-head{ padding-bottom: clamp(32px, 4vw, 56px); }
.pf-head-row{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s5) var(--s7); margin-top: var(--s5); }
.pf-head-row .lead{ margin: 0; }
.pf-filter{ display: flex; flex-wrap: wrap; gap: var(--s2); }
.pf-filter button{ display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--g200); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font: inherit; font-size: var(--fs-small); font-weight: 500; cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.pf-filter button span{ font-family: var(--mono); font-size: .6875rem; color: var(--g500); }
.pf-filter button:hover{ border-color: var(--g300); background: var(--g50); }
.pf-filter button[aria-pressed="true"]{ background: var(--ink); border-color: var(--ink); color: var(--white); }
.pf-filter button[aria-pressed="true"] span{ color: var(--on-dark-muted); }
.pf-filter button:focus-visible{ outline: 2px solid var(--ink); outline-offset: 3px; }

.pf-list{ padding-bottom: var(--section); }
.pf-list [data-cat].is-hidden{ display: none; }
.pf-empty{ color: var(--g500); }

/* Projektkarten */
.pf-card .media{ isolation: isolate; }
.pf-card .media::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,15,16,.55), transparent 55%); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.pf-hover{ position: absolute; z-index: 1; left: var(--s5); bottom: var(--s5); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: var(--fs-small); font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.pf-hover svg{ width: 16px; height: 16px; }
.pf-card:hover .media::after, .pf-card:focus-visible .media::after{ opacity: 1; }
.pf-card:hover .pf-hover, .pf-card:focus-visible .pf-hover{ opacity: 1; transform: none; }
.pf-num{ margin-right: 12px; font-family: var(--mono); font-size: var(--fs-label); font-weight: 400; letter-spacing: .08em; color: var(--g500); vertical-align: .2em; }
.pf-desc{ margin-top: var(--s2); color: var(--g500); max-width: 52ch; }

/* Abschluss-Band */
.pf-cta-band{ background: var(--soft-black); color: var(--on-dark); padding-block: clamp(64px, 8vw, 120px); }
.pf-cta-inner{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s6); }
.pf-cta-inner h2{ margin-top: var(--s4); font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.035em; max-width: 18ch; }
.pf-cta-inner p{ margin-top: var(--s4); max-width: 50ch; color: var(--on-dark-muted); }

/* Weiter zum nächsten Projekt (Projektseiten) */
.next-project{ display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s5); padding-block: var(--s7); border-top: 1px solid var(--g200); }
.next-project small{ display: block; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--g500); }
.next-project strong{ display: block; margin-top: 6px; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.next-project .np-arrow{ display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--white); transition: transform var(--t-med) var(--ease); }
.next-project .np-arrow svg{ width: 24px; height: 24px; }
.next-project:hover .np-arrow{ transform: translateX(6px); }

@media (max-width: 760px){
  .pf-filter{ gap: 6px; }
  .pf-filter button{ padding: 0 13px; gap: 6px; }
  .pf-cta-inner .btn-row, .pf-cta-inner .btn{ width: 100%; }
  .next-project .np-arrow{ width: 52px; height: 52px; }
}
@media (hover: none){
  .pf-hover{ display: none; }
  .pf-card .media::after{ display: none; }
}
.app-credit a{ color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; transition: text-decoration-color var(--t-fast) var(--ease); }
.app-credit a:hover{ text-decoration-color: currentColor; }
