/* Webdesign-Erlebnisseite (/websites) — wird nur dort geladen. Hell, luftig, weiche Farbverläufe. */

body.page-web { background: #F8F4ED; overflow-x: clip; } /* clip statt hidden: sonst funktioniert position: sticky nicht */
.page-web { --ink2: #1B2B22; --pool2: #2FA7A3; }
.wb-h2 { margin: 0 0 16px; font: 700 clamp(36px, 4.8vw, 66px)/1.02 var(--f-display); letter-spacing: -.035em; color: var(--ink2); }
.wb-sub { margin: 0; font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); }
[data-wb-in] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * .08s); }
[data-wb-in].is-in { opacity: 1; transform: none; }

/* Weiche, wandernde Farbflächen */
.wb-mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; filter: blur(70px); pointer-events: none; }
.wb-mesh i { position: absolute; border-radius: 50%; animation: wb-drift 18s ease-in-out infinite alternate; }
.wb-mesh i:nth-child(1) { width: 40vmax; height: 34vmax; left: -10vmax; top: -12vmax; background: rgba(244, 184, 96, .75); }
.wb-mesh i:nth-child(2) { width: 42vmax; height: 30vmax; left: 22%; top: -20vmax; background: rgba(226, 140, 104, .5); animation-delay: -6s; }
.wb-mesh i:nth-child(3) { width: 30vmax; height: 30vmax; right: -12vmax; top: 18vmax; background: rgba(143, 211, 207, .55); animation-delay: -11s; animation-duration: 22s; }
.wb-mesh i:nth-child(4) { width: 26vmax; height: 22vmax; left: 30%; top: 30vmax; background: rgba(185, 217, 154, .35); animation-delay: -3s; }
@keyframes wb-drift { to { transform: translate(3vmax, 2.5vmax) scale(1.1); } }

/* ---------- Hero ---------- */
.wb-hero { position: relative; isolation: isolate; padding: clamp(130px, 13vw, 170px) 0 clamp(50px, 6vw, 80px); text-align: center; }
.wb-kicker { display: block; margin: 0 0 14px; font: 600 clamp(18px, 1.7vw, 24px)/1.3 var(--f-display); letter-spacing: -.01em; color: var(--ink2); }
.wb-h1 { position: relative; margin: 0 0 44px; font: 700 clamp(50px, 8.4vw, 124px)/1 var(--f-display); letter-spacing: -.045em; color: var(--ink2); }
.wb-h1__l1 { position: relative; display: inline-block; }
.wb-spark { position: absolute; left: -.46em; top: -.1em; width: .42em; height: .42em; }
.wb-spark svg { width: 100%; height: 100%; fill: none; stroke: var(--terra); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: wb-draw .6s .9s var(--ease) forwards; }
@keyframes wb-draw { to { stroke-dashoffset: 0; } }
.wb-frame { position: relative; display: inline-block; padding: 0 .1em .04em; color: var(--terra); }
.wb-frame::before { content: ''; position: absolute; inset: -.02em -.02em -.06em; border: 2px solid var(--pool2); animation: wb-frame-in .7s .5s var(--ease) both; }
@keyframes wb-frame-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.wb-frame__h { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid var(--pool2); animation: wb-pop .35s var(--spring) both; }
.wb-frame__h:nth-of-type(1) { left: calc(-.02em - 6px); top: calc(-.02em - 6px); animation-delay: .9s; }
.wb-frame__h:nth-of-type(2) { right: calc(-.02em - 6px); top: calc(-.02em - 6px); animation-delay: 1s; }
.wb-frame__h:nth-of-type(3) { left: calc(-.02em - 6px); bottom: calc(-.06em - 6px); animation-delay: 1.1s; }
.wb-frame__h:nth-of-type(4) { right: calc(-.02em - 6px); bottom: calc(-.06em - 6px); animation-delay: 1.2s; }
@keyframes wb-pop { from { transform: scale(0); } to { transform: scale(1); } }
.wb-cursor { position: absolute; left: 82%; bottom: -.52em; display: flex; align-items: flex-start; gap: 2px; animation: wb-pop .4s 1.3s var(--spring) both, wb-hover 4s 1.8s ease-in-out infinite; }
.wb-cursor svg { width: 22px; height: 22px; fill: var(--pool2); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.wb-cursor b::after { content: attr(data-label); } /* Name per CSS: steht nicht im H1-Text */
.wb-cursor b { margin-top: 16px; padding: 5px 11px; border-radius: 99px 99px 99px 4px; background: var(--pool2); color: #fff; font: 700 13px/1 var(--f-body); letter-spacing: 0; white-space: nowrap; }
@keyframes wb-hover { 50% { transform: translate(-6px, -5px); } }
.wb-lead { max-width: 36em; margin: 0 auto 32px; font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); }
.wb-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.wb-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 99px; font: 700 15px/1 var(--f-body); text-decoration: none; transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.wb-btn .ico { width: 18px; height: 18px; }
.wb-btn--dark { background: var(--ink2); color: var(--cream); box-shadow: 0 14px 30px -16px rgba(27, 43, 34, .6); }
.wb-btn--dark:hover { background: var(--terra); }
.wb-btn--light { background: rgba(255, 255, 255, .7); color: var(--ink2); box-shadow: 0 0 0 1px rgba(27, 43, 34, .12); }
.wb-btn--light:hover { background: #fff; }

/* Bento-Karten */
.wb-bento { display: grid; gap: 18px; margin-top: clamp(50px, 7vw, 90px); text-align: center; }
.wb-box { position: relative; overflow: hidden; min-height: 300px; padding: 34px 28px; border-radius: 30px; display: flex; flex-direction: column; align-items: center; }
.wb-box__h { margin: 0; max-width: 13em; font: 700 clamp(21px, 1.8vw, 25px)/1.2 var(--f-display); letter-spacing: -.02em; }
.wb-box__s { margin: auto 0 0; font-size: 14px; font-weight: 600; opacity: .7; }
.wb-box--dark { background: var(--ink2); color: var(--cream); }
.wb-box--light { background: #fff; color: var(--ink2); box-shadow: 0 20px 50px -30px rgba(60, 28, 12, .25); }
.wb-box--warm { background: linear-gradient(160deg, #F6CBB3, #F3B79A); color: var(--ink2); }
.wb-pills { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; }
.wb-pills span { position: absolute; padding: 9px 18px; border-radius: 99px; background: var(--c); color: var(--ink2); font: 700 14px/1 var(--f-body); white-space: nowrap; transform: rotate(var(--r, 0deg)); }
.wb-pills span:nth-child(1) { left: 6%; bottom: 16px; --r: -10deg; }
.wb-pills span:nth-child(2) { left: 36%; bottom: 10px; --r: 7deg; }
.wb-pills span:nth-child(3) { right: 5%; bottom: 20px; --r: -16deg; }
.wb-pills span:nth-child(4) { left: 14%; bottom: 58px; --r: 15deg; }
.wb-pills span:nth-child(5) { left: 46%; bottom: 52px; --r: -5deg; }
.wb-pills span:nth-child(6) { right: 10%; bottom: 66px; --r: 24deg; }
.wb-pills span:nth-child(7) { left: 28%; bottom: 98px; --r: -8deg; }
.wb-box--dark:not(.is-in) .wb-pills span { opacity: 0; }
.wb-box--dark.is-in .wb-pills span { animation: wb-fall 1.1s cubic-bezier(.3, .7, .4, 1) both; animation-delay: calc(.3s + var(--i) * .12s); }
@keyframes wb-fall { 0% { opacity: 0; transform: translateY(-260px) rotate(0deg); } 55% { opacity: 1; transform: translateY(6px) rotate(var(--r)); } 72% { transform: translateY(-14px) rotate(calc(var(--r) * .7)); } 86% { transform: translateY(2px) rotate(var(--r)); } 100% { opacity: 1; transform: translateY(0) rotate(var(--r)); } }
.wb-face { position: relative; width: 132px; height: 132px; margin: 30px 0 18px; }
.wb-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px #F8F4ED; }
.wb-face__dot { position: absolute; right: 8px; bottom: 8px; width: 20px; height: 20px; border-radius: 50%; background: #3CB371; box-shadow: 0 0 0 4px #fff; }
.wb-box__big { margin: 24px 0 10px; font: 700 clamp(80px, 8vw, 112px)/1 var(--f-display); letter-spacing: -.05em; color: var(--terra-deep); }
@media (min-width: 900px) { .wb-bento { grid-template-columns: repeat(3, 1fr); } }

/* Kunden-Namen als ruhige Laufzeile */
.wb-names { margin-top: clamp(50px, 6vw, 80px); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.wb-names p { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.wb-names__track { display: flex; width: max-content; animation: wb-slide 50s linear infinite; }
.wb-names__track span { display: flex; align-items: center; font: 700 clamp(18px, 1.7vw, 22px)/1 var(--f-display); letter-spacing: -.01em; color: rgba(27, 43, 34, .42); white-space: nowrap; }
.wb-names__track i { width: 6px; height: 6px; margin: 0 28px; border-radius: 50%; background: rgba(180, 88, 47, .45); }
@keyframes wb-slide { to { transform: translateX(-50%); } }

/* ---------- Collage-Karte ---------- */
.wb-collage-sec { padding: 0 0 clamp(80px, 9vw, 130px); }
.wb-collage { position: relative; height: clamp(340px, 44vw, 600px); border-radius: 32px; overflow: hidden; background: #1B2B22; box-shadow: 0 50px 100px -50px rgba(27, 43, 34, .6); }
.wb-collage--video { height: auto; aspect-ratio: 16 / 9; }
.wb-collage--video::after { display: none; }
.wb-reel { display: block; width: 100%; height: 100%; object-fit: cover; }
.wb-collage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(17, 26, 21, .45), transparent 25%, transparent 75%, rgba(17, 26, 21, .5)); pointer-events: none; }
.wb-wall__plane { position: absolute; left: 50%; top: -55%; width: 135%; display: flex; align-items: flex-start; gap: 18px; translate: -50% 0; transform: rotate(-12deg); }
.wb-col { flex: 1; min-width: 0; }
.wb-col__track { display: flex; flex-direction: column; gap: 18px; animation: wb-up 60s linear infinite; }
.wb-col--1 .wb-col__track, .wb-col--3 .wb-col__track { animation-name: wb-down; animation-duration: 70s; }
.wb-col--2 .wb-col__track { animation-duration: 52s; }
@keyframes wb-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 9px)); } }
@keyframes wb-down { from { transform: translateY(calc(-50% - 9px)); } to { transform: translateY(0); } }
.wb-tile .wb-browser { border-radius: 10px; }
.wb-tile .wb-browser__bar { height: 18px; padding: 0 8px; gap: 4px; }
.wb-tile .wb-browser__bar > i { width: 6px; height: 6px; }
.wb-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.wb-tile--phone { width: 60%; margin: 0 auto; aspect-ratio: 9 / 18; padding: 5px; border-radius: 22px; background: #0E1410; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.wb-tile--phone img { border-radius: 17px; }

/* ---------- Browser-Grundform ---------- */
.wb-browser { background: #fff; border-radius: 12px; overflow: hidden; }
.wb-browser__bar { position: relative; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #20231F; }
.wb-browser__bar > i { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; } .wb-browser__bar > i:nth-child(2) { background: #E2A23B; } .wb-browser__bar > i:nth-child(3) { background: #3CB371; }
.wb-browser__url { position: absolute; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: 99px; background: #31352F; color: #C9CEC9; font: 600 11px/1.4 var(--f-body); white-space: nowrap; }
.wb-browser__url svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.wb-browser__view { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #fff; }

/* ---------- Projekte (dunkel, Text leuchtet beim Scrollen auf, Karten stapeln sich) ---------- */
.wb-work { position: relative; padding: clamp(90px, 11vw, 150px) 0 clamp(60px, 7vw, 100px); background: #121B16; color: var(--cream); }
.wb-work__lines { position: absolute; inset: 0 0 auto; height: 520px; background: repeating-linear-gradient(115deg, transparent 0 180px, rgba(251, 246, 238, .07) 180px 181px); -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); pointer-events: none; }
.wb-work .wrap { position: relative; }
.wb-work__kicker { margin: 0 0 18px; text-align: center; font-size: 15px; color: rgba(251, 246, 238, .55); }
.wb-lit { max-width: 17em; margin: 0 auto clamp(60px, 8vw, 110px); text-align: center; font: 700 clamp(30px, 4.4vw, 60px)/1.12 var(--f-display); letter-spacing: -.03em; }
.wb-lit span { opacity: var(--o, .18); transition: opacity .25s linear; }
.wb-stack { display: grid; gap: 34px; }
.wb-pcard { position: sticky; top: calc(96px + var(--i) * 22px); display: grid; gap: 20px; min-height: min(76vh, 620px); padding: clamp(26px, 4vw, 54px); border-radius: 32px; background: var(--bg); color: var(--ink2); text-decoration: none; overflow: hidden; box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .5); }
.wb-pcard__text { position: relative; z-index: 2; align-self: end; }
.wb-pcard__no { font: 700 13px/1 var(--f-body); letter-spacing: .2em; color: var(--terra); }
.wb-pcard h3 { margin: 10px 0 18px; font: 700 clamp(30px, 3.4vw, 50px)/1 var(--f-display); letter-spacing: -.035em; }
.wb-pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wb-pcard__tags span { padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .75); font-size: 14px; font-weight: 600; }
.wb-pcard__tags span.is-strong { background: var(--ink2); color: var(--cream); }
.wb-pcard__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--terra-deep); }
.wb-pcard__more .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.wb-pcard:hover .wb-pcard__more .ico { transform: translateX(5px); }
.wb-pcard__dev { position: relative; min-height: 250px; }
.wb-mac { position: absolute; right: -2%; bottom: 8%; width: 90%; transition: transform .8s var(--ease); }
.wb-pcard:hover .wb-mac { transform: translateY(-8px); }
.wb-mac__scr { position: relative; aspect-ratio: 16 / 10; padding: 1.4%; border-radius: 14px 14px 0 0; background: #121412; overflow: hidden; }
.wb-mac__scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 6px; }
.wb-mac__base { height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(#E7E3DD, #A9A39B); }
.wb-iphone { position: absolute; left: 3%; bottom: 3%; width: 23%; aspect-ratio: 9 / 19.5; padding: 5px; border-radius: 26px; background: #121412; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .55); transition: transform .8s var(--ease); }
.wb-pcard:hover .wb-iphone { transform: translateY(-14px) rotate(-3deg); }
.wb-iphone__scr { height: 100%; border-radius: 21px; overflow: hidden; background: #fff; }
.wb-iphone__scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 900px) {
  .wb-pcard { grid-template-columns: .75fr 1.25fr; align-items: stretch; }
  .wb-pcard__dev { min-height: 0; }
}
@media (max-width: 899px) { .wb-pcard__dev { aspect-ratio: 4 / 3; min-height: 0; } .wb-pcard { position: relative; top: 0; } }

/* ---------- Leistungen ---------- */
.wb-svc { padding: clamp(90px, 10vw, 140px) 0; }
.wb-svc__head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.wb-svc__grid { display: grid; gap: 16px; }
.wb-svc__card { display: flex; flex-direction: column; align-items: center; padding: 38px 26px 30px; border-radius: 28px; background: #fff; color: var(--ink2); text-align: center; text-decoration: none; box-shadow: 0 0 0 1px rgba(27, 43, 34, .06), 0 20px 50px -34px rgba(60, 28, 12, .35); transition: transform .5s var(--ease), box-shadow .5s, opacity .9s var(--ease); }
.wb-svc__card.is-in:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(27, 43, 34, .08), 0 30px 60px -30px rgba(60, 28, 12, .45); }
.wb-svc__ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 20px; background: #FBEFE6; color: var(--terra); }
.wb-svc__ic svg { width: 30px !important; height: 30px !important; stroke: currentColor; }
.wb-svc__card h3 { margin: 0 0 10px; font: 700 22px/1.2 var(--f-display); letter-spacing: -.02em; }
.wb-svc__card p { margin: 0 0 24px; font-size: 15.5px; color: var(--muted); }
.wb-svc__go { display: grid; place-items: center; width: 42px; height: 42px; margin-top: auto; border-radius: 50%; box-shadow: 0 0 0 1px rgba(27, 43, 34, .15); transition: background .3s, color .3s; }
.wb-svc__go .ico { width: 16px; height: 16px; transform: rotate(-45deg); }
.wb-svc__card:hover .wb-svc__go { background: var(--ink2); color: var(--cream); }
@media (min-width: 640px) { .wb-svc__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wb-svc__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Abschluss ---------- */
.wb-cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(90px, 11vw, 160px) 0; text-align: center; }
.wb-mesh--cta i:nth-child(1) { top: 10%; left: 5%; } .wb-mesh--cta i:nth-child(2) { top: 30%; }
.wb-cta__h { margin: 0 0 16px; font: 700 clamp(44px, 7vw, 104px)/1 var(--f-display); letter-spacing: -.045em; color: var(--ink2); }
.wb-cta__h em { font-style: normal; color: var(--terra); }
.wb-cta .wb-sub { margin-bottom: 32px; }

@media (max-width: 600px) { .wb-cursor { left: 56%; } .wb-cursor b { font-size: 12px; } }

@media (prefers-reduced-motion: reduce) {
  .wb-mesh i, .wb-col__track, .wb-names__track, .wb-cursor { animation: none !important; }
  [data-wb-in] { opacity: 1; transform: none; }
  .wb-box--dark .wb-pills span { opacity: 1 !important; animation: none !important; }
}
