/* Upstair Media – Agentur-Portfolio. Design-Grundlage: Upstair-Shop (Geist, Pill-Navigation, abgerundeter Vollbild-Hero). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/geist.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/geist-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #fff; --ink: #0d1117; --mut: #5b636d; --line: rgba(13, 17, 23, .09);
  --sans: "Geist", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid #4d7cff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* ===== Navigation (Pill) ===== */
.nh { position: fixed; z-index: 60; top: 28px; left: 0; right: 0; padding: 0 16px; pointer-events: none; animation: nav-in .9s var(--out) 1s both; }
.nh-pill { pointer-events: auto; max-width: 1180px; margin: 0 auto; height: 62px; padding: 0 10px 0 22px; display: flex; align-items: center; gap: 28px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 8px 30px rgba(10, 20, 40, .1); }
.nh-brand { display: inline-flex; align-items: center; }
.nh-logo { display: block; height: 22px; width: auto; transition: transform .6s var(--out); }
.nh-brand:hover .nh-logo { transform: translateY(-2px); }
.nh-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nh-link { display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #28303a; text-decoration: none; transition: background .25s, color .25s; }
.nh-link:hover { background: rgba(13, 17, 23, .06); color: #000; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; border: 1px solid transparent; transition: transform .4s var(--out), box-shadow .3s, background .3s; }
.btn .arr { transition: transform .4s var(--out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: 0 12px 30px rgba(13, 17, 23, .28); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.nh .btn { height: 44px; padding: 0 20px; font-size: 14px; }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; margin: 12px; border-radius: 34px; overflow: hidden; height: calc(100vh - 24px); height: calc(100dvh - 24px);
  display: grid; place-items: center; color: #fff; text-align: center;
  }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #0b1624; }
.hero-img { position: absolute; inset: -6% 0; background: url(hero.jpg) 50% 40% / cover; filter: saturate(.72) contrast(1.08) brightness(.78) hue-rotate(-6deg); animation: hero-zoom 2.4s cubic-bezier(.16, 1, .3, 1) .15s both; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(8, 14, 26, .35), rgba(8, 14, 26, .7) 80%), linear-gradient(0deg, rgba(8, 14, 26, .7) 0%, rgba(8, 14, 26, 0) 45%), linear-gradient(180deg, rgba(8, 14, 26, .5) 0%, rgba(8, 14, 26, 0) 28%); }
.hero-grain { position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-body { padding: 104px clamp(16px, 4vw, 56px) 28px; width: 100%; }
/* Stichwort: wächst aus der Mitte von „nichts“ auf volle Größe */
.hero-title { margin: 0; font: 600 clamp(34px, min(11.5vw, 15vh), 190px)/.92 var(--sans); letter-spacing: -.05em; text-transform: uppercase; }
.hero-title span { display: block; transform-origin: 50% 50%; will-change: transform, opacity; animation: hero-grow 1.7s cubic-bezier(.16, 1, .3, 1) .5s both; }
.hero-title span:nth-child(2) { animation-delay: .64s; }
.hero-sub { margin: clamp(10px, 2.6vh, 28px) auto 0; max-width: 520px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .86); letter-spacing: -.01em; animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) 1.65s both; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(12px, 3.4vh, 32px); animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) 1.8s both; }
.btn-ghost-w { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.btn-ghost-w:hover { background: rgba(255, 255, 255, .24); }

@keyframes hero-zoom { from { transform: scale(1.22); } to { transform: scale(1); } }
@keyframes nav-in { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
@keyframes hero-grow { from { transform: scale(.12); opacity: 0; } 22% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-height: 560px) { .hero-sub { font-size: 15px; } .hero-cta .btn { height: 44px; } }
@media (max-width: 760px) { .nh-nav { display: none; } .nh-pill { justify-content: space-between; } .nh-logo { height: 18px; } .hero { border-radius: 26px; } }
@media (prefers-reduced-motion: reduce) { .nh, .hero, .hero-img, .hero-title span, .hero-sub, .hero-cta { animation: none !important; } }

/* ===== Statement (dunkel, Text füllt sich beim Scrollen weiß) ===== */
.story { --track: 320vh; position: relative; height: var(--track); margin: 0; border-radius: 0; background: #0a0f17; color: #fff; }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; max-height: 100%; display: grid; grid-template-columns: 30% 1fr; gap: clamp(28px, 5vw, 88px); align-items: center; padding: 120px clamp(22px, 4vw, 56px) 36px; }
.story-media { position: relative; height: min(100%, 640px); border-radius: 24px; overflow: hidden; background: #0b1624; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: saturate(.75) contrast(1.05) brightness(.85); }
.story-label { margin: 0 0 clamp(14px, 3vh, 28px); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.story-text { margin: 0; max-width: 900px; font: 600 clamp(22px, min(3.1vw, 5.2vh), 54px)/1.18 var(--sans); letter-spacing: -.03em; }
.story-text .w { color: #3b424d; transition: color .25s linear; }
.story-text .w.on { color: #fff; }
.no-js .story-text .w, .story-text.all .w { color: #fff; }
@media (max-width: 760px) {
  .story { --track: 260vh; }
  .story-pin { grid-template-columns: 1fr; grid-template-rows: minmax(0, 30%) auto; align-content: center; gap: 22px; }
  .story-media { height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .story { --track: auto; height: auto; } .story-pin { position: static; height: auto; padding-block: 80px; } .story-text .w { color: #fff; transition: none; } }

/* ===== Leistungen (hell, Karten stapeln sich beim Scrollen) ===== */
.svc { --track: 480vh; position: relative; height: var(--track); background: #fff; color: var(--ink); }
.svc-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 88px); align-items: center; padding: 100px clamp(22px, 4vw, 56px) 28px; }
.svc-cards { position: relative; height: min(100%, 560px); max-width: 620px; }
.svc-card { position: absolute; top: 48px; left: 0; right: 0; height: calc(100% - 48px); padding: clamp(22px, 3.2vw, 40px); border-radius: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  background: #f5f6f8; border: 1px solid var(--line); transform-origin: 50% 0; will-change: transform; }
.svc-card:nth-child(even) { background: #eff1f4; }
.svc-card:last-child { background: var(--ink); color: #fff; border-color: transparent; }
.svc-num { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--mut); }
.svc-card:last-child .svc-num { color: rgba(255, 255, 255, .55); }
.svc-card h3 { margin: 0; font: 600 clamp(26px, min(3.2vw, 5.4vh), 48px)/1.05 var(--sans); letter-spacing: -.04em; }
.svc-card p { margin: 12px 0 0; max-width: 460px; font-size: clamp(15px, min(1.3vw, 2.4vh), 18px); line-height: 1.5; color: var(--mut); letter-spacing: -.01em; }
.svc-card:last-child p { color: rgba(255, 255, 255, .72); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.svc-tags li { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(13, 17, 23, .06); }
.svc-card:last-child .svc-tags li { background: rgba(255, 255, 255, .12); }

.svc-side { display: grid; gap: clamp(18px, 4vh, 36px); align-content: center; }
.svc-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.svc-title { margin: 0; font: 600 clamp(36px, min(5.6vw, 9.5vh), 96px)/.98 var(--sans); letter-spacing: -.045em; }
.svc-photo { position: relative; width: min(100%, 340px); height: min(26vh, 240px); border-radius: 24px; overflow: hidden; background: #0b1624; }
.svc-photo img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 78% 50%; filter: saturate(.75) contrast(1.05) brightness(.85); will-change: transform; }
.svc-count { position: absolute; left: 14px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .svc { --track: 420vh; }
  .svc-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: start; gap: 18px; padding-top: 92px; }
  .svc-side { order: -1; gap: 10px; }
  .svc-photo { display: none; }
  .svc-cards { height: 100%; max-height: 420px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .svc { --track: auto; height: auto; }
  .svc-pin { position: static; height: auto; padding-block: 100px 80px; }
  .svc-cards { height: auto; display: grid; gap: 16px; }
  .svc-card { position: static; height: auto; transform: none !important; }
}

/* ===== Statement 2 (dunkel, Text fährt von links und rechts über das Bild) ===== */
.cta-sec { --track: 360vh; position: relative; height: var(--track); background: #0a0f17; color: #fff; }
.cta-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.cta-box { display: contents; }
.cta-img { --side: min(58vh, 46vw); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: var(--side); height: var(--side); border-radius: 28px; overflow: hidden; background: #0b1624; will-change: width, height; }
.cta-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: saturate(.75) contrast(1.05) brightness(.8); display: block; }
.cta-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(8, 14, 26, var(--shade, .1)); }
.cta-text { position: absolute; left: 50%; top: 50%; width: max-content; transform: translate(-50%, -50%); margin: 0; text-align: center; pointer-events: none;
  font: 600 clamp(40px, min(11vw, 17vh), 200px)/.92 var(--sans); letter-spacing: -.05em; text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.cta-text span { display: block; will-change: transform, opacity; }
@media (max-width: 760px) { .cta-sec { --track: 300vh; } .cta-img { --side: min(52vh, 78vw); } }
@media (prefers-reduced-motion: reduce) { .cta-sec { --track: auto; height: auto; } .cta-pin { position: static; height: 100dvh; } }

/* ===== Markenleiste (hell, Logos laufen durch, grau → Farbe beim Hover) ===== */
.brands { background: #fff; padding: clamp(48px, 8vw, 88px) 0; overflow: hidden; }
.brands-label { margin: 0 0 clamp(22px, 4vw, 36px); text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.marquee { position: relative; overflow: hidden; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; gap: clamp(56px, 8vw, 110px); padding-right: clamp(56px, 8vw, 110px); }
.marquee-item { display: block; flex: none; line-height: 0; }
.marquee-item img { display: block; height: clamp(22px, 2.4vw, 30px); width: auto; filter: grayscale(1) opacity(.38); transition: filter .35s var(--ease); }
.marquee-item:hover img, .marquee-item:focus-visible img { filter: none; }
/* Ränder: Logos blenden direkt zu transparent aus (Maske, keine Überlagerung) */
.marquee { --fade: clamp(60px, 16vw, 240px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }

/* ===== Projekte (hell, klassisches Raster) ===== */
.work { scroll-margin-top: 72px; background: #fff; padding: clamp(32px, 5vw, 64px) clamp(22px, 4vw, 56px) clamp(64px, 9vw, 120px); }
.work-in { max-width: 1320px; margin: 0 auto; }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.work-label { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.work-title { margin: 0; font: 600 clamp(34px, 4.6vw, 64px)/1 var(--sans); letter-spacing: -.045em; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.work-card { display: flex; flex-direction: column; }
.work-img { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #0b1624; }
.work-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--out); }
.work-card:hover .work-img img { transform: scale(1.05); }
.work-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding-top: 22px; }
.work-tag { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--mut); }
.work-card h3 { margin: 0; font: 600 clamp(20px, 1.8vw, 24px)/1.2 var(--sans); letter-spacing: -.03em; }
.work-card p.work-text { margin: 10px 0 24px; font-size: 16px; line-height: 1.55; color: var(--mut); letter-spacing: -.01em; }
.work-body .btn { margin-top: auto; }
.btn-soft { height: 46px; padding: 0 22px; background: #f5f6f8; color: var(--ink); border-color: rgba(13, 17, 23, .1); }
.btn-soft:hover { background: #eceef2; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .work-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .work-card { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--out), transform .8s var(--out); transition-delay: calc(var(--i, 0) * .1s); }
  .js .work-card.in { opacity: 1; transform: none; }
}

/* ===== Featured Projekt (dunkel, Bild wächst zum Vollbild, schiebt sich hoch, Infoleiste erscheint) ===== */
.feat { --track: 460vh; --panel: clamp(150px, 24vh, 260px); position: relative; height: var(--track); background: #0a0f17; color: #fff; }
.feat-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
/* Grundzustand = Endzustand (ohne JS / bei reduzierter Bewegung) */
.feat-media { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - var(--panel)); overflow: hidden; border-radius: 0 0 28px 28px; background: #0b1624; }
.feat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: saturate(.8) contrast(1.05) brightness(.9); will-change: transform; }
.feat-panel { position: absolute; left: 0; right: 0; bottom: 0; height: var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 0 clamp(22px, 4vw, 56px); }
.feat-tag { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.feat-title { margin: 0; font: 600 clamp(24px, min(3.2vw, 4.4vh), 46px)/1.05 var(--sans); letter-spacing: -.04em; }
.feat-text { margin: 10px 0 0; max-width: 560px; font-size: clamp(14px, min(1.25vw, 2.1vh), 17px); line-height: 1.5; color: rgba(255, 255, 255, .7); letter-spacing: -.01em; }
.btn-xl { height: clamp(54px, 8vh, 72px); padding: 0 clamp(26px, 3vw, 44px); font-size: clamp(16px, 1.3vw, 19px); flex: none; }
/* Text über dem Bild: wächst mit, blendet aus, sobald die Infoleiste kommt */
.feat-media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 14, 26, calc(var(--scrim, 0) * .42)); pointer-events: none; }
.feat-over { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2vh, 20px); text-align: center; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.feat-over-tag { font-size: clamp(12px, 1.1vw, 15px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.feat-over-title { font: 600 clamp(48px, min(11vw, 20vh), 190px)/.92 var(--sans); letter-spacing: -.05em; color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, .3); }
@media (max-width: 760px) {
  .feat { --track: 400vh; --panel: clamp(230px, 40vh, 320px); }
  .feat-panel { flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; }
  .feat-panel .btn-xl { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .feat { --track: auto; height: auto; } .feat-pin { position: relative; height: 100dvh; } }

/* ===== Loader (Berg grau → weiß, öffnet sich dann von der Mitte) ===== */
html.loading { overflow: hidden; }
html.loading :is(.nh, .hero-img, .hero-title span, .hero-sub, .hero-cta) { animation-play-state: paused; }
.loader { position: fixed; inset: 0; z-index: 200; display: none; pointer-events: none; }
html.loading .loader, .loader.out { display: block; }
html.loading .loader { pointer-events: auto; }
.loader-half { position: absolute; left: 0; right: 0; height: 50.2%; background: #0a0f17; transition: transform 1.15s cubic-bezier(.7, 0, .2, 1) .3s; }
.loader-top { top: 0; }
.loader-bot { bottom: 0; }
.loader-mark { position: absolute; left: 50%; top: 50%; width: clamp(84px, 11vw, 132px); height: auto; transform: translate(-50%, -50%); color: #4a525e; transition: opacity .35s ease; }
.loader-mark path { fill: currentColor; }
.loader.out .loader-top { transform: translateY(-100%); }
.loader.out .loader-bot { transform: translateY(100%); }
.loader.out .loader-mark { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .loader { display: none !important; } }

/* Projekte: auf großen Bildschirmen stehen bleiben, Karten bauen sich beim Scrollen nacheinander auf */
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .work { --track: 340vh; height: var(--track); padding: 0; scroll-margin-top: 0; }
  .work-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; align-items: center; padding: 100px clamp(22px, 4vw, 56px) 32px; }
  .work-in { width: 100%; }
  .work-head { margin-bottom: clamp(18px, 3.5vh, 36px); }
  .work-title { font-size: clamp(32px, min(4.6vw, 7.4vh), 64px); }
  .work-img { aspect-ratio: auto; height: clamp(130px, 31vh, 340px); }
  .work-body { padding-top: clamp(14px, 2.4vh, 22px); }
  .work-card p.work-text { margin: 8px 0 clamp(14px, 2.6vh, 24px); }
  .js .work.work-pinned .work-card { transition: none; will-change: transform, opacity; }
}
@media (min-width: 1001px) and (max-height: 640px) { .work-text { display: none; } }

/* ===== Kontakt (hell, Überschrift wächst, Formular schiebt sie nach oben) ===== */
.con { --pad: clamp(22px, 4vw, 56px); background: #fff; color: var(--ink); padding: clamp(72px, 10vw, 120px) var(--pad); }
.con-head { margin: 0 auto clamp(28px, 5vw, 48px); text-align: center; font: 600 clamp(44px, 10vw, 150px)/.92 var(--sans); letter-spacing: -.05em; }
.con-form { position: relative; width: min(1100px, 100%); margin: 0 auto; padding: clamp(20px, 2.6vw, 32px); border-radius: 28px; background: #f5f6f8; border: 1px solid var(--line); overflow: hidden; }
.con-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px clamp(16px, 2vw, 28px); height: 100%; }
.con-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.con-field { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.con-field.grow { flex: 1; }
.con-field label { font-size: 13px; font-weight: 600; letter-spacing: -.005em; }
.con-field input, .con-field select, .con-field textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(13, 17, 23, .14); border-radius: 14px; background: #fff; color: var(--ink); font: 500 16px/1.3 var(--sans); outline: none; transition: border-color .2s, box-shadow .2s; }
.con-field textarea { flex: 1; min-height: 90px; resize: none; }
.con-field input:focus, .con-field select:focus, .con-field textarea:focus { border-color: #4d7cff; box-shadow: 0 0 0 3px rgba(77, 124, 255, .18); }
.con-field.err input, .con-field.err select, .con-field.err textarea { border-color: #d2452f; }
/* Einheitliche Felder auf allen Systemen: Systemdarstellung aus, gleiche Höhe wie die Eingabefelder */
.con-form { color-scheme: light; }
.con-field input, .con-field select { height: 50px; }
.con-field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; text-overflow: ellipsis;
  background-color: #fff; background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1117' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.con-field select:invalid { color: var(--mut); }
.con-field select option { color: var(--ink); background: #fff; font-weight: 500; }

.con-err { min-height: 0; margin: 0; font-size: 12.5px; line-height: 1.3; color: #b53a26; }
.con-field:not(.err) .con-err { display: none; }
.con-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.con-consent { display: flex; align-items: flex-start; gap: 10px; max-width: 560px; font-size: 13px; line-height: 1.45; color: var(--mut); }
.con-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.con-consent a { color: var(--ink); }
.con-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.con-done { display: none; height: 100%; place-content: center; text-align: center; gap: 10px; padding: 24px; }
.con-done h3 { margin: 0; font: 600 clamp(26px, 3vw, 40px)/1.05 var(--sans); letter-spacing: -.04em; }
.con-done p { margin: 0; color: var(--mut); }
.con-form.sent .con-grid { display: none; }
.con-form.sent .con-done { display: grid; }
@media (max-width: 900px) { .con-grid { grid-template-columns: 1fr; } .con-field textarea { min-height: 130px; } .con-bottom .btn { width: 100%; } }
@media (min-height: 520px) and (prefers-reduced-motion: no-preference) {
  .con { padding: 0; }
  .con-track { --track: 400vh; height: var(--track); }
  .con-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
  .con-head { position: absolute; left: 50%; top: 50%; margin: 0; white-space: nowrap; transform: translate(-50%, -50%) scale(.04); transform-origin: 50% 50%; will-change: transform, opacity; opacity: 0; }
  .con-form { position: absolute; left: 50%; top: 100%; width: min(1100px, calc(100% - 2 * var(--pad))); margin: 0; transform: translate3d(-50%, 0, 0); visibility: hidden; will-change: transform, opacity; }
}

/* Projekte auf dem Handy: Karten bleiben oben stehen, die nächste schiebt sich darüber */
@media (max-width: 660px) {
  .work-grid { gap: 22px; padding-bottom: 30vh; }
  .work-card, .js .work-card { position: sticky; top: calc(92px + var(--i, 0) * 14px); padding: 14px 14px 22px; border-radius: 28px; background: #f5f6f8; border: 1px solid var(--line); transform-origin: 50% 0; opacity: 1; transform: none; transition: none; will-change: transform; }
  .work-card:nth-child(even) { background: #eff1f4; }
  .work-img { aspect-ratio: auto; height: clamp(150px, 30vh, 250px); border-radius: 18px; }
  .work-body { padding: 18px 6px 0; }
  .work-card p.work-text { margin-bottom: 20px; }
}

/* Kontakt auf dem Handy: gleiche Inszenierung, Formular in normaler Größe (darf höher als der Bildschirm sein) */
@media (max-width: 900px) and (min-height: 520px) and (prefers-reduced-motion: no-preference) {
  .con-head { white-space: normal; width: min(86vw, 640px); font-size: clamp(48px, 17vw, 96px); }
  .con-track { --track: 290vh; }
  .con-pin { overflow: visible; }
  .con-form { overflow: visible; }
}

/* ===== Footer (dunkel) ===== */
.ft { --pad: clamp(22px, 4vw, 56px); margin: 12px; border-radius: 34px; background: #0a0f17; color: #fff; padding: clamp(56px, 8vw, 96px) var(--pad) 28px; }
@media (max-width: 760px) { .ft { border-radius: 26px; } }
.ft-in { max-width: 1320px; margin: 0 auto; }
.ft-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px clamp(24px, 4vw, 64px); }
.ft-logo { display: block; height: 24px; width: auto; }
.ft-tag { margin: 22px 0 28px; max-width: 340px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .62); letter-spacing: -.01em; }
.ft-col h3 { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.ft-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ft-col a { color: rgba(255, 255, 255, .82); font-size: 15px; text-decoration: none; transition: color .2s; }
.ft-col a:hover { color: #fff; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }
.ft-bottom a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.ft-bottom a:hover { color: #fff; }
.ft-legal { display: flex; gap: 22px; }
@media (max-width: 900px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 340px) { .ft-top { grid-template-columns: 1fr; } }

/* Weite Sprungmarken: Überblendung statt Schnelldurchlauf */
main, .ft { transition: opacity .55s ease; }
html.jumping main, html.jumping .ft { opacity: 0; transition-duration: .28s; }
@media (prefers-reduced-motion: reduce) { main, .ft { transition: none; } }
