/* Landing WerkoApp: 3D-Bühne (Desktop-Ansichten) und 3D-Ring der Telefone – nach dem Vorbild von werko.app/office */
html, body { overflow-x: clip; }   /* 3D-Ebenen ragen über den Rand – nicht seitlich verschiebbar machen (auch iOS) */

/* ── Rundgang: Desktop-Karussell ── */
.rundgang { padding: 30px 0 10px; }
.l3-buehne { position: relative; margin: 34px auto 0; max-width: 1080px; perspective: 1800px; --p: 0; }
.l3-karussell { position: relative; aspect-ratio: 16 / 10.6; transform: rotateX(calc(16deg * (1 - var(--p)))) scale(calc(.93 + .07 * var(--p)));
  transform-origin: 50% 0; transform-style: preserve-3d; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.l3-karussell.zieht { cursor: grabbing; }
.l3-folie { position: absolute; inset: 0; transition: transform .75s cubic-bezier(.2,.8,.2,1), opacity .75s, filter .75s; will-change: transform; }
.l3-folie .rahmen { height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: 0 40px 90px -40px rgba(16,24,40,.45), 0 0 120px -40px rgba(37,99,235,.35); }
.l3-folie .rahmen img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top left; display: block; pointer-events: none; }
.l3-folie.aktiv { z-index: 3; transform: translateX(var(--dx, 0px)); }
.l3-folie.vor { z-index: 2; transform: translateX(-58%) translateZ(-260px) rotateY(28deg) scale(.78); opacity: .55; filter: saturate(.8); cursor: pointer; }
.l3-folie.nach { z-index: 2; transform: translateX(58%) translateZ(-260px) rotateY(-28deg) scale(.78); opacity: .55; filter: saturate(.8); cursor: pointer; }
.l3-folie.weg { z-index: 1; transform: translateZ(-500px) scale(.6); opacity: 0; pointer-events: none; }
.l3-karussell.zieht .l3-folie { transition: none; }
.l3-leuchten { position: absolute; left: 10%; right: 10%; bottom: -60px; height: 140px; background: radial-gradient(ellipse at center, rgba(37,99,235,.28), transparent 70%); filter: blur(30px); z-index: 0; }
.l3-pfeil { position: absolute; top: 44%; z-index: 6; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--stroke, #e4e7ec); background: rgba(255,255,255,.9);
  color: var(--text, #101828); display: grid; place-items: center; cursor: pointer; font-size: 18px; box-shadow: 0 12px 30px -12px rgba(16,24,40,.4); backdrop-filter: blur(10px); transition: transform .2s, background .2s; }
.l3-pfeil:hover { transform: scale(1.08); background: #fff; }
.l3-pfeil.l { left: -26px; } .l3-pfeil.r { right: -26px; }
.l3-punkte { position: relative; z-index: 6; display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.l3-punkte button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--stroke, #e4e7ec); background: rgba(255,255,255,.75);
  color: var(--muted, #475467); font: 700 14px inherit; font-family: inherit; cursor: pointer; transition: all .3s; }
.l3-punkte button i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--f); font-size: 13px; }
.l3-punkte button.an { color: var(--text, #101828); background: #fff; border-color: var(--f); box-shadow: 0 0 0 3px color-mix(in srgb, var(--f) 18%, transparent), 0 10px 24px -14px var(--f); }
.l3-text { text-align: center; max-width: 640px; margin: 18px auto 0; min-height: 52px; color: var(--muted, #475467); font-size: 16.5px; transition: opacity .35s; }
.l3-text b { color: var(--text, #101828); }
.l3-symbole { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 10.6; pointer-events: none; z-index: 7; }
.l3-symbole span { position: absolute; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-size: 26px; background: var(--f);
  box-shadow: 0 16px 30px -10px color-mix(in srgb, var(--f) 70%, transparent); animation: l3tanzen 7s ease-in-out infinite; }
.l3-symbole span:nth-child(1) { left: -30px; top: 10%; } .l3-symbole span:nth-child(2) { right: -28px; top: 4%; animation-delay: -2s; }
.l3-symbole span:nth-child(3) { left: 5%; bottom: -30px; animation-delay: -4s; } .l3-symbole span:nth-child(4) { right: 7%; bottom: -26px; animation-delay: -1s; }
@keyframes l3tanzen { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

/* ── Handy-Ring ── */
.l3-mobil { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.l3-mobil .section-kopf { text-align: left; margin: 0 0 26px; }
.l3-apps { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.l3-apps button { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 16px; text-align: left; cursor: pointer; font: inherit; color: var(--text, #101828);
  background: var(--flaeche, #fff); border: 1px solid var(--stroke, #e4e7ec); transition: all .25s; }
.l3-apps button i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--f); font-size: 17px; }
.l3-apps button b { display: block; font-size: 15.5px; } .l3-apps button small { display: block; color: var(--muted, #475467); font-size: 13.5px; line-height: 1.35; }
.l3-apps button:hover, .l3-apps button.an { background: #fff; transform: translateX(6px); border-color: var(--f); box-shadow: 0 12px 30px -16px rgba(16,24,40,.35); }
.l3-handy-buehne { position: relative; height: 640px; perspective: 1100px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.l3-handy-buehne.zieht { cursor: grabbing; }
.l3-ring { position: absolute; left: 50%; top: 10px; width: 270px; height: 584px; margin-left: -135px; transform-style: preserve-3d; }
.l3-tel { position: absolute; inset: 0; border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #2a2f4a, #0d0f1d);
  box-shadow: 0 0 0 2px rgba(255,255,255,.08) inset, 0 40px 80px -30px rgba(16,24,40,.55); }
.l3-tel.vorn { box-shadow: 0 0 0 2px rgba(255,255,255,.08) inset, 0 50px 90px -30px rgba(16,24,40,.6), 0 0 120px -30px rgba(37,99,235,.45); }
.l3-tel::after { content: ""; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; border-radius: 20px; background: #000; }
.l3-tel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; pointer-events: none; background: #0b1020; }
.l3-schatten { position: absolute; left: 50%; bottom: 8px; width: 360px; height: 40px; margin-left: -180px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(16,24,40,.28), transparent 70%); filter: blur(8px); }
.l3-handy-punkte { display: none; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.l3-handy-punkte button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #cfd5e1; cursor: pointer; }
.l3-handy-punkte button.an { background: var(--accent, #2563eb); width: 26px; border-radius: 6px; }

/* Tablet (auch iPad quer): Telefone über die ganze Breite, Liste darunter zweispaltig */
@media (max-width: 1180px) {
  .l3-mobil { grid-template-columns: 1fr; gap: 10px; }
  .l3-mobil > .reveal { display: contents; }
  .l3-mobil .section-kopf { text-align: center; margin: 0 auto 10px; max-width: 720px; order: 1; }
  .l3-mobil > div:not(.reveal) { order: 2; }
  .l3-apps { order: 3; max-width: none; display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .l3-apps button:hover, .l3-apps button.an { transform: translateY(-3px); }
}
@media (max-width: 900px) {
  .l3-apps { display: none; }
  .l3-handy-punkte { display: flex; }
  .l3-handy-buehne { height: 560px; }
  .l3-ring { width: 240px; height: 519px; margin-left: -120px; }
}
@media (max-width: 760px) {
  .l3-buehne { margin-top: 20px; }
  .l3-karussell { transform: none !important; }
  .l3-folie.vor { transform: translateX(-104%) scale(.9); opacity: 0; }
  .l3-folie.nach { transform: translateX(104%) scale(.9); opacity: 0; }
  .l3-pfeil { width: 38px; height: 38px; top: calc((100vw - 40px) * .331 - 19px); font-size: 15px; } .l3-pfeil.l { left: -10px; } .l3-pfeil.r { right: -10px; }
  .l3-symbole { display: none; }
  .l3-punkte { margin-top: 26px; } .l3-punkte button span { display: none; } .l3-punkte button { padding: 5px; }
}
@media (prefers-reduced-motion: reduce) { .l3-folie, .l3-symbole span { transition: none !important; animation: none !important; } .l3-karussell { transform: none; } }

/* ══════════ Animationen auf der ganzen Seite ══════════ */
/* Fortschritt beim Scrollen */
.l3-fortschritt { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 2000; transform-origin: 0 50%; transform: scaleX(var(--s, 0));
  background: linear-gradient(90deg, #2563eb, #7c3aed, #0f9d6e); pointer-events: none; }

/* Hero: weiche Farbflächen im Hintergrund, gestaffeltes Einblenden, schwebende Karten */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(37,99,235,.45), transparent 65%); animation: l3wolke 18s ease-in-out infinite; }
.hero::after { width: 460px; height: 460px; left: 30%; bottom: -260px; background: radial-gradient(circle, rgba(15,157,110,.35), transparent 65%); animation: l3wolke 22s ease-in-out infinite reverse; }
@keyframes l3wolke { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-60px,40px) scale(1.12); } 66% { transform: translate(40px,-30px) scale(.92); } }
html.js .hero-gitter > div:first-child > * { animation: l3hoch .8s cubic-bezier(.2,.8,.2,1) backwards; }
html.js .hero-gitter > div:first-child > *:nth-child(2) { animation-delay: .08s; }
html.js .hero-gitter > div:first-child > *:nth-child(3) { animation-delay: .16s; }
html.js .hero-gitter > div:first-child > *:nth-child(4) { animation-delay: .24s; }
html.js .hero-gitter > div:first-child > *:nth-child(5) { animation-delay: .32s; }
@keyframes l3hoch { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-bild .hero-rahmen { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hero-karte { animation: l3schweben 6s ease-in-out infinite; }
.hero-karte.oben { animation-delay: -3s; }
@keyframes l3schweben { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero-karte .ikone i { animation: l3puls 2.4s ease-in-out infinite; }
@keyframes l3puls { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* Glanz über den Hauptknöpfen */
.knopf.haupt { position: relative; overflow: hidden; }
.knopf.haupt::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: l3glanz 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes l3glanz { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Gestaffeltes Einblenden von Karten-Gittern */
html.js .l3-staffel:not(.l3-da) > * { opacity: 0; }
.l3-staffel.l3-da > * { animation: l3karte .7s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes l3karte { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

/* 3D-Kippen mit Lichtreflex (nur Maus) */
.l3-kipp { position: relative; transform-style: preserve-3d; will-change: transform; }
.l3-kipp.l3-aktiv { transition: transform .08s linear, box-shadow .2s !important; }
.l3-kipp:not(.l3-aktiv) { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.l3-glanz { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 55%); mix-blend-mode: soft-light; }
.l3-kipp.l3-aktiv .l3-glanz { opacity: 1; }
.funktion .ikone { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.funktion:hover .ikone { transform: translateZ(30px) rotate(-6deg) scale(1.08); }

/* „So funktioniert's“: Bilder kommen schräg herein und richten sich auf */
html.js .reihe .reihe-bild { transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity 1s; transform: perspective(1200px) translateX(-50px) rotateY(16deg); opacity: 0; }
html.js .reihe.rechts .reihe-bild { transform: perspective(1200px) translateX(50px) rotateY(-16deg); }
html.js .reihe.visible .reihe-bild { transform: perspective(1200px); opacity: 1; }
.reihe .papier { animation: l3schweben 7s ease-in-out infinite; }
html.js .reihe .reihe-text li { opacity: 0; transform: translateX(-12px); transition: opacity .5s, transform .5s; }
html.js .reihe.visible .reihe-text li { opacity: 1; transform: none; }
.reihe.visible .reihe-text li:nth-child(1) { transition-delay: .35s; } .reihe.visible .reihe-text li:nth-child(2) { transition-delay: .45s; }
.reihe.visible .reihe-text li:nth-child(3) { transition-delay: .55s; } .reihe.visible .reihe-text li:nth-child(4) { transition-delay: .65s; }
.reihe.visible .reihe-text li:nth-child(5) { transition-delay: .75s; }

/* Hell / Dunkel: Schieberegler zum Vergleichen */
.l3-vergleich { position: relative; max-width: 960px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--stroke, #e4e7ec);
  box-shadow: 0 30px 70px rgba(16,24,40,.14); cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; --x: 50%; }
.l3-vergleich img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; pointer-events: none; }
.l3-vergleich .l3-hell { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.l3-vergleich .l3-griff { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(16,24,40,.15), 0 0 20px rgba(0,0,0,.25); }
.l3-vergleich .l3-griff::after { content: "\2039  \203A"; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; font: 800 18px/1 inherit; color: #2563eb; box-shadow: 0 8px 24px rgba(16,24,40,.3); letter-spacing: 2px; }
.l3-vergleich .l3-marke { position: absolute; top: 14px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; backdrop-filter: blur(8px); }
.l3-vergleich .l3-marke.d { left: 14px; background: rgba(11,16,32,.75); color: #fff; } .l3-vergleich .l3-marke.h { right: 14px; background: rgba(255,255,255,.85); color: #101828; }

/* KI: Schritte nacheinander */
html.js .ki-karte ol li { opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; }
html.js .ki-karte.l3-da ol li { opacity: 1; transform: none; }
.ki-karte.l3-da ol li:nth-child(2) { transition-delay: .15s; } .ki-karte.l3-da ol li:nth-child(3) { transition-delay: .3s; }
.ki-karte.l3-da ol li:nth-child(4) { transition-delay: .45s; } .ki-karte.l3-da ol li:nth-child(5) { transition-delay: .6s; } .ki-karte.l3-da ol li:nth-child(6) { transition-delay: .75s; }
.ki-tags span { transition: transform .25s; } .ki-tags span:hover { transform: translateY(-3px) rotate(-2deg); }

/* Schluss-Box: wandernder Farbverlauf */
.cta-box { position: relative; overflow: hidden; isolation: isolate; }
.cta-box::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 60%, rgba(124,58,237,.35) 75%, transparent 90%); animation: l3drehen 14s linear infinite; }
@keyframes l3drehen { to { transform: rotate(360deg); } }

/* Zahlen: kleiner Sprung beim Hover */
.zahl { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; } .zahl:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-karte, .hero-karte .ikone i, .knopf.haupt::after, .reihe .papier, .cta-box::before { animation: none !important; }
  html.js .hero-gitter > div:first-child > *, .l3-staffel.l3-da > * { animation: none !important; }
  html.js .l3-staffel:not(.l3-da) > *, html.js .reihe .reihe-bild, html.js .reihe .reihe-text li, html.js .ki-karte ol li { opacity: 1 !important; transform: none !important; }
}

/* Kopfzeile auf Tablets: Menüpunkte nicht umbrechen */
.kopf-nav a { white-space: nowrap; }
@media (max-width: 1100px) { .kopf-nav a { padding: 8px 9px; } }
