/* fourfifty studio – Auftragsarbeit. Eigener, heller Look (Farben der Arbeitsproben), unabhängig von site.css.
   Reines CSS, keine Skripte, keine style-Attribute (CSP). Bewegung nur bei prefers-reduced-motion: no-preference;
   Scroll-Effekte nur, wo der Browser animation-timeline kann – sonst ist alles sofort sichtbar. */

:root {
  --bg: #F5F3EE; --card: #FFFFFF; --ink: #1E2933; --mute: #56606B; --line: #DDD8CD;
  --accent: #6B47A8; --accent-dk: #563894; --accent-soft: #EEE8F6; --green: #3D8558; --teal: #2BB3A3;
  --navy: #14365E; --amber: #E39B2D; --dark: #0F1B24;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max: 1120px; --pad: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body);
       -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dk); }
img, video { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 72px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
h2.big { font-size: clamp(30px, 4.4vw, 48px); }
h3 { font-size: 19px; font-weight: 700; margin-bottom: .35em; }
p { margin: 0 0 1em; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; font-weight: 600;
        padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.wrap, .s-top-in, .s-foot { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* Fortschrittsleiste oben (nur mit Scroll-Timeline) */
.bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
       background: linear-gradient(90deg, var(--accent), var(--teal), var(--amber)); }

/* Kopf */
.s-top { position: sticky; top: 0; z-index: 50; background: #F5F3EEd9; border-bottom: 1px solid transparent;
         backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.s-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; flex-wrap: wrap; }
.s-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.s-logo .m { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
             background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: -.02em;
             transition: transform .4s var(--ease), background .3s; }
.s-logo:hover .m { transform: rotate(-14deg) scale(1.08); background: var(--accent); }
.s-logo small { color: var(--mute); font-weight: 500; }
.s-top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.s-top nav a { position: relative; color: var(--mute); text-decoration: none; font-weight: 500; font-size: 15px;
               padding: 6px 10px; border-radius: 8px; transition: color .2s, background .2s; }
.s-top nav a:hover { color: var(--ink); background: #1E29330a; }

/* Hero mit wandernden Farbflächen */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(64px, 11vw, 132px) clamp(48px, 7vw, 80px); }
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blobs i { position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 520px; height: 520px; right: -120px; top: -160px; background: #D9CCF0; }
.b2 { width: 420px; height: 420px; right: 18%; top: 38%; background: #CDEDE7; }
.b3 { width: 360px; height: 360px; left: -140px; bottom: -180px; background: #F6DFBC; }
.hero h1 { max-width: 14em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.kick { display: block; color: var(--accent); font-weight: 650; font-size: 13.5px; letter-spacing: .1em;
        text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--mute); max-width: 42em; }
.muted { color: var(--mute); }
.hero-works { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-works a { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px;
                background: #FFFFFFb3; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
                font-weight: 550; font-size: 15px; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.hero-works a:hover { transform: translateY(-2px); border-color: var(--accent); background: #fff; }
.hero-works b { color: var(--accent); font-size: 13px; }

.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btns.center { justify-content: center; }
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-block; background: var(--accent); color: #fff;
       font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 12px;
       transition: transform .25s var(--ease), box-shadow .25s, background .2s; overflow-wrap: anywhere; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
              background: linear-gradient(90deg, transparent, #ffffff40, transparent); transition: transform .6s var(--ease); }
.btn:hover { background: var(--accent-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--accent); }
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn.ghost { background: #FFFFFF99; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); background: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--accent-soft); color: var(--ink); box-shadow: 0 14px 30px -14px #000; }

/* Laufband */
.ticker { display: flex; overflow: hidden; border-block: 1px solid var(--line); background: var(--card);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex: none; gap: 0; }
.ticker li { font-weight: 650; font-size: clamp(17px, 2vw, 22px); white-space: nowrap; padding-inline: 28px; color: var(--ink); }
.ticker li::after { content: "✦"; color: var(--accent); margin-left: 56px; font-size: .8em; }
.ticker li:nth-child(3n+2)::after { color: var(--teal); }
.ticker li:nth-child(3n)::after { color: var(--amber); }

/* Abschnitte */
.sec { padding-block: clamp(64px, 10vw, 120px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.mt { margin-top: clamp(48px, 7vw, 80px); }
.small { font-size: 15px; }

/* Arbeitsproben */
.work { padding-block: clamp(36px, 6vw, 72px); }
#arbeiten-2 .work, #arbeiten-3 .work { border-top: 1px dashed var(--line); }
.work-head { display: grid; grid-template-columns: auto 1fr; gap: 8px clamp(18px, 3vw, 36px); align-items: start; margin-bottom: 28px; }
.work-n { font-size: clamp(56px, 9vw, 112px); font-weight: 800; line-height: .8; letter-spacing: -.04em;
          color: transparent; -webkit-text-stroke: 1.5px #B8AECB; }
.work-head .lead { margin-bottom: 0; }

.player { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
          box-shadow: 0 30px 60px -36px #1E293366, 0 2px 0 #fff inset; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: var(--bg); }
.player.dark video { background: var(--dark); }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap;
              padding: 14px 20px; font-size: 15px; border-top: 1px solid var(--line); color: var(--mute); }
.langs { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px 28px;
         grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.facts li { padding: 4px 0 4px 18px; border-left: 3px solid var(--accent-soft); color: var(--mute); }
.facts b { display: block; color: var(--ink); }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 64px);
        align-items: center; margin-top: clamp(40px, 6vw, 64px); }
.pair img { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -36px #1E293366;
            transform: rotate(-1.5deg); transition: transform .5s var(--ease); }
.pair img:hover { transform: rotate(0) scale(1.02); }
.dl { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.dl li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; background: var(--card);
         border: 1px solid var(--line); border-radius: 12px; font-size: 15px; transition: border-color .2s, transform .2s var(--ease); }
.dl li:hover { border-color: var(--accent); transform: translateX(4px); }
.dl span { color: var(--mute); }

/* Karussell als wischbarer Streifen */
.strip-wrap { margin-inline: calc(var(--pad) * -1); }
.strip { list-style: none; margin: 0; padding: 8px var(--pad) 26px; display: flex; gap: 18px; overflow-x: auto;
         scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: #C9C2D6 transparent; }
.strip li { flex: 0 0 clamp(240px, 30%, 340px); scroll-snap-align: start; }
.strip a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
           box-shadow: 0 24px 44px -30px #14365E88; transition: transform .35s var(--ease), box-shadow .35s; }
.strip a:hover { transform: translateY(-6px); box-shadow: 0 34px 54px -30px #14365Eaa; }
.meta { color: var(--mute); font-size: 15px; margin-top: 8px; }
.hint::after { content: " →"; display: inline-block; }

/* Leistungen, Ablauf */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
        padding: 26px 24px 24px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; transform: scaleX(0); transform-origin: 0 50%;
                background: linear-gradient(90deg, var(--accent), var(--teal)); transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -30px #1E293366; border-color: #CFC6DD; }
.card:hover::before { transform: scaleX(1); }
.card-n { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 18px; letter-spacing: .06em; }
.card p { margin: 0; color: var(--mute); font-size: 16px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; position: relative; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; position: relative;
            padding-bottom: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
                    background: var(--card); border: 2px solid var(--accent); color: var(--accent); font-weight: 700; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 0; width: 2px;
                                    background: linear-gradient(var(--accent), var(--accent-soft)); }
.steps p { margin: 0; color: var(--mute); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 64px; align-items: start; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check li { padding: 14px 18px 14px 48px; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.check li::before { content: ""; position: absolute; left: 20px; top: 1.15em; width: 12px; height: 7px;
                    border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* Kontakt als dunkler Block */
.contact { text-align: center; background: var(--dark); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: 50%; top: 50%;
                   translate: -50% -50%; border-radius: 50%;
                   background: conic-gradient(from 0deg, #6B47A855, #2BB3A344, #E39B2D33, #6B47A855); filter: blur(90px); opacity: .7; }
.contact .kick { color: #9FE3D9; }
.contact .lead { margin-inline: auto; color: #C3CFD8; }
.sec + .contact { border-top: 0; }

/* Fuß */
.s-foot { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 28px 40px;
          color: var(--mute); font-size: 14px; }
.s-foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.s-foot a { color: var(--mute); text-decoration: none; }
.s-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Bewegung ---------- */
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-40px) rotate(-4deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes zoom { from { opacity: 0; transform: scale(.92) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes drift1 { 50% { transform: translate(-80px, 60px) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(90px, -50px) scale(.9); } }
@keyframes drift3 { 50% { transform: translate(60px, -70px) scale(1.1); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes nudge { 50% { transform: translateX(5px); } }

@media (prefers-reduced-motion: no-preference) {
  .in { animation: up .9s var(--ease) both; }
  .in2 { animation-delay: .08s; } .in3 { animation-delay: .18s; } .in4 { animation-delay: .28s; } .in5 { animation-delay: .4s; }
  .b1 { animation: drift1 18s ease-in-out infinite; }
  .b2 { animation: drift2 22s ease-in-out infinite; }
  .b3 { animation: drift3 20s ease-in-out infinite; }
  .ticker ul { animation: marquee 38s linear infinite; }
  .ticker:hover ul { animation-play-state: paused; }
  .contact::before { animation: spin 30s linear infinite; }
  .hint::after { animation: nudge 1.4s ease-in-out infinite; }

  @supports (animation-timeline: view()) {
    .bar { animation: grow linear both; animation-timeline: scroll(root); }
    .s-top { animation: headline linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    .reveal { animation: up linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
    .reveal-zoom { animation: zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .reveal-left { animation: fromLeft linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
    .cards .card:nth-child(2), .facts li:nth-child(2) { animation-range: entry 12% cover 36%; }
    .cards .card:nth-child(3), .facts li:nth-child(3) { animation-range: entry 19% cover 42%; }
    .cards .card:nth-child(4) { animation-range: entry 26% cover 48%; }
    .work-n { animation: numfill linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
  }
}
@keyframes headline { to { border-bottom-color: var(--line); background: #F5F3EEf2; } }
@keyframes numfill { to { color: var(--accent-soft); -webkit-text-stroke-color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 760px) {
  :root { --pad: 18px; }
  body { font-size: 16px; }
  .pair { grid-template-columns: 1fr; }
  .s-top nav a { font-size: 14px; padding: 4px 6px; }
  .work-head { grid-template-columns: 1fr; }
  .strip li { flex-basis: 72%; }
  .b2 { display: none; }
}
