/* Isometric process figure and kinetic hero headline. Default state is the finished picture;
   motion only runs when JS marks the scene as playing and the visitor allows motion. */
.flow-scene { margin: 28px 0 8px; padding: 18px 12px 10px; background: #edf1e6; border-radius: 16px; }
.flow-art { display: block; width: 100%; height: auto; overflow: visible; }
.flow-link { stroke: #173e33; stroke-opacity: .45; stroke-width: 3; stroke-linecap: round; fill: none; }
.flow-loop { stroke: #8f62b3; stroke-width: 3; stroke-dasharray: .018 .018; stroke-linecap: round; fill: none; }
.flow-scene figcaption { margin: 8px 4px 0; font-size: 11px; line-height: 1.5; color: #52644f; }
@keyframes flow-drop { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
@keyframes flow-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .flow-scene[data-motion="ready"] .flow-tile,
  .flow-scene[data-motion="ready"] .flow-link { opacity: 0; }
  .flow-scene[data-motion="ready"] .flow-loop { opacity: 0; }
  .flow-scene[data-motion="playing"] .flow-tile { animation: flow-drop .55s cubic-bezier(.22,1,.36,1) backwards; animation-delay: calc(var(--i) * .5s); }
  .flow-scene[data-motion="playing"] .flow-link { animation: flow-fade .35s ease-out backwards; animation-delay: calc(var(--i) * .5s + .4s); }
  .flow-scene[data-motion="playing"] .flow-loop { animation: flow-fade .6s ease-out backwards; animation-delay: 2.6s; }
}
/* Kinetic hero: words rise in one after another; the last line gets a highlight sweep. */
@keyframes kt-rise { from { opacity: 0; transform: translateY(.5em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kt-sweep { from { background-size: 0 .09em; } to { background-size: 100% .09em; } }
.kt .kt-word { display: inline-block; }
.kt em { background: linear-gradient(#58c79c, #58c79c) no-repeat 0 100% / 100% .09em; }
@media (prefers-reduced-motion: no-preference) {
  .kt .kt-word { animation: kt-rise .7s cubic-bezier(.22,1,.36,1) backwards; animation-delay: calc(var(--w) * .13s + .1s); }
  .kt em { animation: kt-sweep .8s ease-out backwards; animation-delay: 1.5s; }
}
/* Whiteboard cost sketch: bars are drawn in one after another, then the result is circled. */
.wb-scene { margin: 24px 0; }
.wb-board { padding: 22px 20px 18px; background: #fff; border: 3px solid #cfd8cf; border-radius: 14px; box-shadow: inset 0 0 0 1px #fff, 0 1px 0 #b9c4b9; }
.wb-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 9rem; gap: 14px; align-items: center; padding: 10px 0; }
.wb-row + .wb-row { border-top: 2px dashed #d7e0d7; }
.wb-label { font-weight: 650; font-size: 15px; }
.wb-track { min-width: 0; }
.wb-bar { display: flex; height: 44px; width: calc(var(--tot) / 40 * 100%); }
.wb-seg { position: relative; flex: var(--m) 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 650; color: #173e33; transform-origin: left center; }
.wb-seg::before { content: ""; position: absolute; inset: 0; border: 2.5px solid #173e33; border-radius: 7px; background: var(--c); filter: url(#wb-wobble); z-index: 0; }
.wb-seg > span { position: relative; z-index: 1; }
.wb-s1 { --c: #cfe6ff; } .wb-s2 { --c: #ffe7a3; } .wb-s3 { --c: #ffc9d2; }
.wb-val { font-size: 14px; line-height: 1.35; }
.wb-val b { position: relative; display: inline-block; padding: 2px 8px; font-size: 17px; }
.wb-val b::after { content: ""; position: absolute; inset: -4px -2px; border: 2.5px solid #2f8e6a; border-radius: 50%; filter: url(#wb-wobble); opacity: 0; }
.wb-row-ai .wb-val b::after { opacity: 1; }
.wb-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12px; color: #4a614e; }
.wb-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 2px solid #173e33; border-radius: 3px; }
.wb-scene figcaption { margin: 10px 2px 0; font-size: 11px; line-height: 1.5; color: #52644f; }
@keyframes wb-grow { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wb-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .wb-scene[data-motion="ready"] .wb-seg, .wb-scene[data-motion="ready"] .wb-val { opacity: 0; }
  .wb-scene[data-motion="playing"] .wb-seg { animation: wb-grow .45s ease-out backwards; animation-delay: calc(var(--k) * .35s); }
  .wb-scene[data-motion="playing"] .wb-val { animation: wb-pop .5s ease-out backwards; animation-delay: calc(var(--k) * .35s + .3s); }
  .wb-scene[data-motion="playing"] .wb-row-ai .wb-val b::after { animation: wb-pop .5s cubic-bezier(.34,1.56,.64,1) backwards; animation-delay: 3.2s; }
}
@media (max-width: 640px) {
  .wb-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
/* Paper collage (Beispiele): cut pieces are dropped onto the board one after another. */
.pc-scene { margin: 28px 0 8px; }
.pc-board { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 0 10px; align-items: center; padding: 38px 34px 34px; overflow: hidden; border-radius: 16px; background: radial-gradient(circle at 1px 1px, rgba(23,62,51,.13) 1.2px, transparent 1.6px) 0 0 / 16px 16px, #eadfc9; }
.pc-piece { position: relative; z-index: 1; min-width: 0; transform: rotate(var(--r)); filter: drop-shadow(2px 4px 0 rgba(23,62,51,.22)); }
.pc-paper { position: relative; background: #fffdf6; padding: 12px 12px 14px; }
.pc-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #173e33; }
.pc-photo .pc-paper img { display: block; width: 100%; height: 240px; object-fit: cover; object-position: 50% 30%; }
.pc-tape { position: absolute; top: -12px; left: 50%; width: 76px; height: 24px; margin-left: -38px; background: rgba(242,194,75,.85); transform: rotate(-3deg); z-index: 2; }
.pc-note .pc-paper { padding: 22px 20px 26px; background: #fffaf0 repeating-linear-gradient(transparent 0 25px, rgba(61,123,240,.18) 25px 26px); clip-path: polygon(0 3%, 4% 0, 9% 2%, 15% 0, 22% 2%, 29% 0, 36% 2%, 43% 0, 50% 2%, 57% 0, 64% 2%, 71% 0, 78% 2%, 85% 0, 92% 2%, 100% 0, 100% 97%, 94% 100%, 88% 98%, 81% 100%, 73% 98%, 66% 100%, 58% 98%, 51% 100%, 43% 98%, 36% 100%, 28% 98%, 20% 100%, 13% 98%, 6% 100%, 0 98%); }
.pc-note p { margin: 0; font: 500 13px/26px ui-monospace, "SF Mono", Menlo, monospace; color: #173e33; }
.pc-clip .pc-paper { background: #1d2b26; padding: 14px 10px 12px; }
.pc-clip .pc-label { color: #f6f5ee; }
.pc-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pc-frames span { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 3px; background: #000; }
.pc-frames img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-frames span:nth-child(2) img { transform: scale(1.25); transform-origin: 50% 35%; }
.pc-frames span:nth-child(3) img { transform: scale(1.55); transform-origin: 50% 35%; }
.pc-play { position: absolute; right: 8px; bottom: 8px; width: 0; height: 0; border-left: 14px solid #f2c24b; border-top: 9px solid transparent; border-bottom: 9px solid transparent; z-index: 2; }
.pc-cut { position: absolute; z-index: 0; pointer-events: none; filter: drop-shadow(2px 3px 0 rgba(23,62,51,.2)); }
.pc-cut-a { top: 14px; left: 38%; width: 54px; height: 54px; background: #3d7bf0; border-radius: 50%; }
.pc-cut-b { bottom: 14px; left: 30%; width: 70px; height: 40px; background: #58c79c; transform: rotate(-8deg); clip-path: polygon(0 12%, 100% 0, 92% 100%, 6% 88%); }
.pc-cut-c { top: 22px; right: 12%; width: 46px; height: 46px; background: #ff8fa3; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); }
.pc-scene figcaption { margin: 10px 2px 0; font-size: 11px; line-height: 1.5; color: #52644f; }
@keyframes pc-drop { from { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r) - 8deg)); } to { opacity: 1; transform: rotate(var(--r)); } }
@media (prefers-reduced-motion: no-preference) {
  .pc-scene[data-motion="ready"] .pc-piece, .pc-scene[data-motion="ready"] .pc-cut { opacity: 0; }
  .pc-scene[data-motion="playing"] .pc-piece { animation: pc-drop .6s cubic-bezier(.34,1.3,.64,1) backwards; animation-delay: calc(var(--k) * .45s); }
  .pc-scene[data-motion="playing"] .pc-cut { animation: flow-fade .5s ease-out backwards; animation-delay: 1.5s; }
}
@media (max-width: 720px) {
  .pc-board { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 22px 26px; }
  .pc-photo .pc-paper img { height: 200px; }
  .pc-cut-a, .pc-cut-c { opacity: .9; }
}
/* Process examples (Beispiele): collage index and step chips coloured by actor type. */
.pc-index .pc-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; }
.pc-index .pc-note .pc-paper { min-height: 170px; display: flex; flex-direction: column; gap: 10px; }
.pc-index .pc-note a { color: inherit; text-decoration: none; }
.pc-index .pc-note a:hover .pc-title, .pc-index .pc-note a:focus-visible .pc-title { text-decoration: underline; }
.pc-title { font-size: 18px; font-weight: 650; line-height: 1.25; }
.pc-dots { display: flex; gap: 6px; margin-top: auto; }
.pc-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #173e33; }
.pc-index .pc-tape { background: var(--tape, rgba(242,194,75,.85)); }
.proc-example { margin: 48px 0 0; padding-top: 32px; border-top: 2px dashed #d7e0d7; max-width: 980px; }
.proc-example h2 { margin: 0 0 18px; }
.proc-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; }
.proc-flow li { position: relative; padding: 12px 12px 14px; border: 1px solid #d9e0d4; border-top: 5px solid var(--a); border-radius: 10px; background: #fff; }
.proc-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); z-index: 1; width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 13px; color: #173e33; background: #f6f5ee; border-radius: 50%; }
.proc-flow span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #52644f; }
.proc-flow strong { display: block; margin-top: 4px; font-size: 14px; line-height: 1.35; }
.a-waechter { --a: #f2c24b; } .a-agent { --a: #3d7bf0; } .a-skript { --a: #44b6bd; } .a-test { --a: #58c79c; } .a-mensch { --a: #b58ad6; }
.proc-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 0 0 18px; }
.proc-facts dt { font-weight: 650; }
.proc-facts dd { margin: 0; }
.proc-links { margin: 0; }
.proc-closing { margin: 48px 0 0; max-width: 980px; }
@media (max-width: 860px) {
  .pc-index .pc-board { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .proc-flow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .proc-flow li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -17px; transform: translateX(-50%); }
  .proc-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .proc-facts dd { margin-bottom: 10px; }
}
.proc-stand { margin: 40px 0 0; max-width: 980px; font-size: 14px; line-height: 1.6; color: #52644f; }
/* Hero: status badge and one real product screen. */
.status-badge { display: inline-block; margin: 18px 0 6px; padding: 6px 14px; border: 1px solid #b9c9b4; border-radius: 999px; background: #edf1e6; font-size: 13px; line-height: 1.4; color: #173e33; }
.status-badge strong { font-weight: 700; }
.app-shot { margin: 40px 0 8px; max-width: 1100px; }
.app-shot h2 { margin: 0 0 16px; }
.app-shot picture, .app-shot img { display: block; width: 100%; height: auto; }
.app-shot img { border: 1px solid #cfd8cf; border-radius: 14px; box-shadow: 0 10px 30px rgba(23,62,51,.14); }
.app-shot figcaption { margin: 12px 2px 0; font-size: 13px; line-height: 1.55; color: #52644f; }
/* Cost calculator with your own numbers. */
.calc { margin: 28px 0 24px; padding: 22px 22px 18px; max-width: 980px; border: 1px solid #d9e0d4; border-radius: 14px; background: #fff; }
.calc h3 { margin: 0 0 6px; }
.calc > p { margin: 0 0 16px; font-size: 14px; color: #52644f; }
.calc fieldset { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.calc legend { padding: 0; margin-bottom: 8px; font-weight: 650; font-size: 14px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 16px; margin-bottom: 14px; }
.calc label { display: block; font-size: 13px; line-height: 1.35; font-weight: 600; }
.calc input { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px 10px; font: inherit; box-sizing: border-box; }
.calc input[aria-invalid="true"] { outline: 2px solid #c0392b; }
.calc-result { padding: 14px 16px; border-radius: 10px; background: #edf1e6; }
.calc-result p { margin: 4px 0; }
.calc-result span { display: inline-block; min-width: 4.5rem; font-weight: 650; }
.calc-diff { font-weight: 650; }
