/* Leistungsseite Automatisierung: Kopf wie eine Fallstudie, darunter ein Ablauf in Szenen auf einer hellen Bühne in den Farben der Startseite. */
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }

h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14ch; }
h1 em { color: var(--blue); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.intro { display: grid; border-bottom: 1px solid var(--line); background: var(--surface); }
.intro > div { padding: clamp(36px, 6vw, 96px) var(--pad); }
.intro p { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 18px 0 0; }
.meta { display: grid; gap: 22px; align-content: center; }
.meta b { display: block; font-size: 1.15rem; font-weight: 600; margin-top: 6px; }

/* Bühne: bleibt beim Scrollen stehen. Höhe der Strecke = Zahl der Szenen (--n kommt aus automation.js) */
.story { --n: 10; position: relative; height: calc(100svh + var(--n) * 75vh); background: var(--surface); border-bottom: 1px solid var(--line); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; padding: 98px var(--pad) 14px;
  background: linear-gradient(0deg, #dfe8ff 0, #fff 45%);
  /* Gerätegrößen und Plätze für die Einstellung mit beiden Geräten */
  /* Handy: ganz sichtbar, solange es dabei mindestens --pf breit bleibt. Sonst --pf breit und unten angeschnitten, der Knopf bleibt im Bild */
  --pf: 215px; --pw: min(290px, max((100svh - 350px) * .48, min(var(--pf), 70vw, (100svh - 320px) * .77)));
  --lw: min(900px, 84vw, (100svh - 370px) * 1.5); --gap: clamp(40px, 6vw, 110px); --bs: .8;
  --bpx: calc((var(--gap) + var(--lw) * var(--bs)) / -2); --bpy: 0px; --blx: calc((var(--pw) * var(--bs) + var(--gap)) / 2); --bly: 0px; }
.stage::before { content: ""; position: absolute; left: 50%; top: 58%; width: 90vmax; height: 90vmax; margin: -45vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, #1f4fe024, #1f4fe000); transform: translateX(var(--gx, 0)); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--line) 1px, #0000 1px) 0 0 / 100% 64px, linear-gradient(90deg, var(--line) 1px, #0000 1px) 0 0 / 64px 100%;
  mask-image: radial-gradient(70% 60% at 50% 55%, #000, #0000); -webkit-mask-image: radial-gradient(70% 60% at 50% 55%, #000, #0000); }
.stage > * { position: relative; z-index: 1; }

.cap { text-align: center; max-width: 46rem; min-height: 9.4rem; margin: 0 auto; }
.cap .eye { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.cap h2 { font-size: clamp(1.8rem, 3.7vw, 3.2rem); margin: 0 0 10px; text-wrap: balance; }
.cap p { margin: 0; color: var(--muted); font-size: clamp(.92rem, 1.2vw, 1.08rem); line-height: 1.45; text-wrap: balance; }
.cap.in > * { animation: cap-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.cap.in h2 { animation-delay: .07s; }
.cap.in p:last-child { animation-delay: .16s; }
@keyframes cap-in { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } }

/* Welt mit Kamera: Die Einstellung (data-shot) schiebt Handy und Laptop ins Bild oder hinaus */
.world { container-type: size; perspective: 1800px; mask-image: linear-gradient(#000 calc(100% - 30px), #0000); -webkit-mask-image: linear-gradient(#000 calc(100% - 30px), #0000); }
.dev { position: absolute; left: 50%; top: 50%; transition: transform 1.15s cubic-bezier(.22, .8, .2, 1), opacity .7s ease; will-change: transform, opacity; }
/* Ist das Handy höher als der Platz, rückt es nach unten und wird unten angeschnitten, damit die Knöpfe oben groß bleiben */
.phone { z-index: 2; width: var(--pw); height: calc(var(--pw) * 2.08); opacity: var(--pO, 1);
  transform: translate(-50%, -50%) translate(var(--pX, 0px), calc(var(--pY, 0px) + max(0px, (var(--pw) * 2.08 * var(--pS, 1) - 100cqh) / 2 + 6px))) scale(var(--pS, 1)) rotateX(var(--pT, 0deg)) rotateY(var(--pR, 0deg)); }
.laptop { width: var(--lw); opacity: var(--lO, 1);
  transform: translate(-50%, -50%) translate(var(--lX, 0px), var(--lY, 0px)) scale(var(--lS, 1)) rotateY(var(--lR, 0deg)); }
.stage[data-shot=off] { --pY: 60vh; --pS: .8; --pO: 0; --pT: 28deg; --lX: 70vw; --lS: .8; --lO: 0; --lR: -28deg; }
.stage[data-shot=phone] { --lX: 64vw; --lS: .8; --lO: 0; --lR: -28deg; --gx: -5vw; }
.stage[data-shot=laptop] { --pX: -64vw; --pS: .8; --pO: 0; --pR: 28deg; --gx: 5vw; }
.stage[data-shot=both] { --pX: var(--bpx); --pY: var(--bpy); --pS: var(--bs); --pR: 13deg; --lX: var(--blx); --lY: var(--bly); --lS: var(--bs); --lR: -9deg; }

/* Datenpaket, das zwischen den Geräten fliegt */
.fly { position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; }
.fly > * { position: absolute; translate: -50% -50%; opacity: 0; }
.fly b { padding: .6em 1.1em; border-radius: 99px; background: var(--blue); color: #fff; font: 600 .8rem/1 var(--sans); white-space: nowrap; box-shadow: 0 0 0 4px #1f4fe026, 0 10px 30px #1f4fe066; }
.fly i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px #1f4fe099; }
.stage[data-fly=l] .fly { --x0: var(--bpx); --y0: var(--bpy); --x1: var(--blx); --y1: var(--bly); }
.stage[data-fly=p] .fly { --x0: var(--blx); --y0: var(--bly); --x1: var(--bpx); --y1: var(--bpy); }
.stage[data-fly] .fly > * { animation: fly 2.6s cubic-bezier(.45, 0, .25, 1) .9s infinite; }
.stage[data-fly] .fly i { animation-delay: 1.06s; }
.stage[data-fly] .fly i + i { animation-delay: 1.2s; }
@keyframes fly { 0% { transform: translate(var(--x0), var(--y0)) scale(.5); opacity: 0; } 12%, 58% { opacity: 1; } 72%, 100% { transform: translate(var(--x1), var(--y1)) scale(1); opacity: 0; } }

/* Handy: Metallrahmen, Tasten, Statusleiste mit Kamera-Insel (wie auf der Website-Seite) */
.phone { padding: 9px; border-radius: 15% / 7.2%; background: #08090b;
  box-shadow: 0 0 0 1px #2b2d33, 0 0 0 3.5px #a3a6ad, 0 0 0 4.5px #6d7078, 0 34px 60px -18px #0b122070, 0 14px 24px -10px #0b122050; }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #8a8d95; }
.phone::before { left: -7px; top: 19%; height: 26%; background: linear-gradient(#8a8d95 0 18%, #0000 18% 34%, #8a8d95 34% 64%, #0000 64% 72%, #8a8d95 72%); }
.phone::after { right: -7px; top: 27%; height: 13%; }
.screen { position: relative; height: 100%; border-radius: 12.4% / 5.8%; overflow: hidden; background: var(--bg); container-type: inline-size; }
.sbar { position: absolute; inset: 0 0 auto; z-index: 4; display: flex; justify-content: space-between; align-items: center; height: 11.6cqw; padding: 1.4cqw 7.4cqw 0; color: var(--ink); font: 600 3.9cqw/1 -apple-system, "SF Pro Text", "Segoe UI", sans-serif; }
.sbar i { position: absolute; left: 50%; top: 2.6cqw; translate: -50%; width: 29cqw; height: 8.2cqw; border-radius: 5cqw; background: #000; }
.sbar span + span { display: flex; align-items: center; gap: 1.4cqw; }
.sbar svg { height: 3cqw; width: auto; fill: currentColor; }

/* Buchungs-App im Handy. Alle Maße hängen an der Handybreite (cqw) */
.papp { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2.6cqw; padding: 16cqw 6cqw 9cqw; background: linear-gradient(#fff, var(--bg) 30%); color: var(--ink); font: 4.3cqw/1.4 var(--sans); }
.papp.in > * { animation: scr .6s cubic-bezier(.2, .7, .2, 1) both; }
.papp.in > :nth-child(2) { animation-delay: .06s; } .papp.in > :nth-child(3) { animation-delay: .12s; } .papp.in > :nth-child(4) { animation-delay: .18s; }
.papp.in > :nth-child(5) { animation-delay: .24s; } .papp.in > :nth-child(n+6) { animation-delay: .3s; }
@keyframes scr { from { opacity: 0; transform: translateY(5cqw); } }
.papp::after { content: "studio morgen"; margin-top: auto; text-align: center; font: 1.1em/1 var(--serif); color: #0b122038; }
.pb { display: flex; justify-content: space-between; align-items: center; font: 1.45em/1 var(--serif); margin-bottom: 2cqw; }
.pb small { font: 600 .4em/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .5em .8em; border: 1px solid #c9d2e0; border-radius: 99em; color: var(--muted); }
.pe { font-size: .66em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.papp h3 { font: 400 2em/1.02 var(--serif); letter-spacing: -.02em; margin: 0 0 1cqw; }
.papp p { margin: 0; color: var(--muted); font-size: .9em; }
.papp .tiny { font-size: .7em; text-align: center; }
.slot { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: .85em 1em; border: 1.5px solid var(--line); border-radius: .6em; background: #fff; color: inherit; font-size: .92em; font-weight: 600; text-align: left; transition: border-color .2s, background .2s; }
.slot::after { content: ""; width: 1.15em; height: 1.15em; border-radius: 50%; border: 1.5px solid #c9d2e0; flex: none; }
.slot[aria-pressed=true] { border-color: var(--blue); background: var(--blue-soft); }
.slot[aria-pressed=true]::after { border: .36em solid var(--blue); }
.pcta { width: 100%; padding: 1em; margin-top: 1cqw; border: 1px solid #39425a; border-radius: .4em; background: var(--ink); color: #fff; font-size: .95em; font-weight: 600; }
.pcta:enabled { animation: ring 2s ease-out 1.2s infinite; }
.pcta:disabled { opacity: .35; }
@keyframes ring { from { box-shadow: 0 0 0 0 #1f4fe099; } 70%, to { box-shadow: 0 0 0 1em #1f4fe000; } }
.tick { display: grid; gap: .15em; padding: 1em 1.1em; border: 1px solid var(--line); border-radius: .7em; background: #fff; box-shadow: 0 .6em 1.6em #0b122012; }
.tick small { font-size: .62em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tick b { font-size: 1.12em; }
.tick span { font-size: .8em; color: var(--muted); }
.ok { display: grid; place-items: center; width: 2.5em; height: 2.5em; margin-top: 3cqw; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.25em; }
.mid { margin: auto 0; padding-bottom: 20cqw; text-align: center; }
.spin { display: block; width: 3.4em; height: 3.4em; margin: 0 auto 5cqw; border-radius: 50%; border: .3em solid var(--line); border-top-color: var(--blue); animation: spin 1s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.mail { padding: 1em 1.1em; border-radius: .7em; border: 1px solid var(--line); background: #fff; font-size: .82em; color: #3c4658; }
.mail small { display: block; margin-top: .7em; font-size: .82em; color: var(--muted); }
.ping { position: absolute; left: 3cqw; right: 3cqw; top: 13cqw; z-index: 3; display: flex; gap: .8em; align-items: center; padding: .8em 1em; border-radius: 1.3em; background: #fffffff2; box-shadow: 0 .8em 2.2em #0000003d; font-size: .8em; line-height: 1.3; }
.papp.in > .ping { animation: ping .8s cubic-bezier(.2, 1.1, .3, 1) 1.9s both; }
@keyframes ping { from { transform: translateY(-170%); opacity: 0; } }
.ping i { display: grid; place-items: center; flex: none; width: 2.4em; height: 2.4em; border-radius: .7em; background: var(--blue); color: #fff; font-style: normal; }
.ping small { display: block; font-size: .78em; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ping b { display: block; }
.amount { font: 400 3.6em/1 var(--serif); letter-spacing: -.02em; }
.amount span { font-size: .5em; }
.sum { display: flex; justify-content: space-between; padding: .8em 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .86em; }
.rates { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45em; margin-top: 1cqw; }
.rate { aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: .6em; background: #fff; color: inherit; font-weight: 600; }
.rate[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #fff; }
.scale { display: flex; justify-content: space-between; font-size: .68em; color: var(--muted); }

/* Laptop mit dem Arbeitsplatz des Betriebs. Maße hängen an der Bildschirmbreite (cqw) */
.lscreen { display: flex; flex-direction: column; aspect-ratio: 16 / 10; border: 7px solid #0b0c0e; border-radius: 14px 14px 4px 4px; background: var(--bg); color: var(--ink); overflow: hidden; container-type: inline-size;
  box-shadow: 0 0 0 1.5px #5f636b, 0 34px 70px -22px #0b122070; }
.lbase { position: relative; height: 14px; margin: 0 -5%; border-radius: 3px 3px 16px 16px; background: linear-gradient(#dfe2e8, #9a9ea7 60%, #5d6068); }
.lbase::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: #7c8089; }
.lbar, .app { font-size: 1.72cqw; }
.lbar { display: flex; align-items: center; gap: .45em; padding: .65em 1em; background: #e6eaf2; color: var(--muted); }
.lbar i { width: .7em; height: .7em; border-radius: 50%; background: #c3ccdb; }
.lbar span { margin-left: .8em; padding: .25em 1em; border-radius: .5em; background: #fff; font-size: .78em; }
.app { position: relative; flex: 1; min-height: 0; display: grid; grid-template: auto 1fr / auto 1fr; gap: 1em 1.2em; padding: 1.2em 1.4em 1.4em; line-height: 1.35; overflow: hidden; }
/* Seitenleiste mit den Bereichen des Betriebs */
.side { display: flex; flex-direction: column; gap: .3em; padding-right: 1em; border-right: 1px solid var(--line); }
.tab { position: relative; display: flex; align-items: center; gap: .6em; padding: .55em .8em .55em .55em; border: 0; border-radius: .5em; background: none; color: var(--muted); font-size: .85em; font-weight: 500; text-align: left; transition: background .25s, color .25s; }
.tab:hover { background: #fff; color: var(--ink); }
.tab[aria-current] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.ti { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: .45em; background: #fff; border: 1px solid var(--line); font-size: .9em; }
.tab[aria-current] .ti { background: var(--blue); border-color: var(--blue); color: #fff; }
.bd { position: absolute; top: .45em; left: 1.85em; width: .6em; height: .6em; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 .18em var(--bg); animation: bd 1.6s ease-out infinite; }
@keyframes bd { 0% { box-shadow: 0 0 0 .18em var(--bg), 0 0 0 .18em #e5484d80; } 70%, 100% { box-shadow: 0 0 0 .18em var(--bg), 0 0 0 .9em #e5484d00; } }
.pane { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: .8em; }
.pane.cal { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2em; }
/* Neue Ansicht: Teile gleiten nacheinander herein */
.app.vin .pane > * { animation: vin .55s cubic-bezier(.2, .8, .2, 1) both; }
.app.vin .pane > :nth-child(2) { animation-delay: .07s; } .app.vin .pane > :nth-child(3) { animation-delay: .14s; } .app.vin .pane > :nth-child(n+4) { animation-delay: .21s; }
@keyframes vin { from { opacity: 0; transform: translateY(.9em) scale(.985); filter: blur(4px); } }
.app.vin .tl li, .app.vin .ml li { animation: vin .5s cubic-bezier(.2, .8, .2, 1) both; }
.app.vin .tl li:nth-child(2), .app.vin .ml li:nth-child(2) { animation-delay: .25s; } .app.vin .tl li:nth-child(3), .app.vin .ml li:nth-child(3) { animation-delay: .35s; }
.app.vin .tl li:nth-child(4) { animation-delay: .45s; } .app.vin .tl li:nth-child(5) { animation-delay: .55s; }

/* Kundenkarte */
.who { display: flex; align-items: center; gap: .8em; padding: .9em 1em; border: 1px solid var(--line); border-radius: .6em; background: #fff; }
.who .av { width: 2.6em; height: 2.6em; font-size: 1.1em; }
.who b { display: block; font: 400 1.5em/1 var(--serif); }
.who small { color: var(--muted); font-size: .82em; }
.tag { margin-left: auto; padding: .35em .8em; border-radius: 99em; background: var(--blue-soft); color: var(--blue); font-size: .72em; font-weight: 600; }
.tl, .ml { position: relative; display: grid; gap: .1em; margin: 0; padding: .4em .9em; list-style: none; border: 1px solid var(--line); border-radius: .6em; background: #fff; }
.tl li, .ml li { display: flex; align-items: center; gap: .8em; padding: .45em 0; color: #9aa3b2; font-size: .86em; }
.tl li + li, .ml li + li { border-top: 1px solid #eef1f6; }
.tl li i, .ml li i { display: grid; place-items: center; flex: none; width: 1.7em; height: 1.7em; border: 1.5px solid #cfd6e2; border-radius: 50%; font-size: .8em; font-style: normal; }
.tl li b, .ml li b { display: block; font-weight: 600; }
.tl small, .ml small { font-size: .85em; }
.tl em, .ml em { margin-left: auto; font-style: normal; font-weight: 600; white-space: nowrap; }
.tl li.done, .ml li { color: var(--ink); }
.tl li.done i, .ml li i { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); font-weight: 700; }
.ml li.new { margin: 0 -.5em; padding: .45em .5em; border-radius: .5em; background: var(--blue-soft); }
.pick { display: flex; flex-wrap: wrap; gap: .6em; }
.lbtn { position: relative; padding: .7em 1.1em; border: 1px solid #39425a; border-radius: .35em; background: var(--ink); color: #fff; font-size: .82em; font-weight: 600; transition: background .25s, color .25s; }
.lbtn:hover { background: var(--blue); border-color: var(--blue); }
.lbtn.alt { background: #fff; color: var(--ink); border-color: #c9d2e0; }
.lbtn.alt:hover { color: var(--blue); border-color: var(--blue); background: #fff; }
.pane > .lbtn { align-self: flex-start; }
.lbtn .hint { left: 72%; top: 50%; font-size: 1.15em; }

/* Zahlungen */
.sum2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.sum2 > div { padding: .9em 1em; border: 1px solid var(--line); border-radius: .6em; background: #fff; }
.sum2 > div:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.sum2 small { display: block; font-size: .75em; color: var(--muted); }
.sum2 > div:first-child small { color: #aebbd6; }
.sum2 b { display: block; margin-top: .25em; font: 400 2em/1 var(--serif); font-variant-numeric: tabular-nums; }
.pane h4 { margin: .2em 0 0; }
.prow { display: flex; align-items: center; gap: .8em; padding: .7em .9em; border: 1px solid var(--line); border-radius: .6em; background: #fff; font-size: .86em; }
.prow small { display: block; color: var(--muted); font-size: .85em; }
.prow strong { margin-left: auto; }
.prow.fresh { animation: hl 2.4s ease-out .8s both; }
@keyframes hl { from { background: var(--blue-soft); border-color: var(--blue); } }
.pill { padding: .3em .75em; border-radius: 99em; font-size: .8em; font-weight: 600; white-space: nowrap; }
.pill.paid { background: #e7f0ff; color: var(--blue); }
.pill.wait { background: #f4f6fb; color: var(--muted); }
.bill { position: absolute; top: 0; right: 0; width: min(18em, 62%); display: flex; flex-direction: column; gap: .55em; padding: 1.2em; border-radius: .6em; background: #fff; box-shadow: -1em 0 3em #0b122033, 0 0 0 1px var(--line); font-size: .86em;
  animation: bill .7s cubic-bezier(.2, 1, .3, 1) both; }
@keyframes bill { from { transform: translateX(110%) rotate(3deg); opacity: 0; } }
.bill small { color: var(--blue); font-size: .75em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bill b { font: 400 1.5em/1 var(--serif); margin-bottom: .3em; }
.bill div { display: flex; justify-content: space-between; padding-bottom: .5em; border-bottom: 1px dashed #d6dce6; }
.bill .tot { margin-top: .4em; padding: .6em 0 0; border: 0; border-top: 2px solid var(--ink); font-weight: 700; }
.bill p { margin: 0; color: var(--muted); font-size: .78em; text-align: center; }

/* Nachrichten und Antwort mit einem Klick */
.compose { display: flex; flex-direction: column; gap: .6em; }
.compose > small { color: var(--muted); font-size: .78em; }
.typing { display: flex; gap: .3em; align-self: flex-end; padding: .8em 1em; border-radius: 1em 1em .3em 1em; background: var(--blue-soft); opacity: 0; animation: typing 1.1s both; }
.typing i { width: .45em; height: .45em; border-radius: 50%; background: var(--blue); animation: dot .9s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dot { 50% { transform: translateY(-.35em); opacity: .4; } }
.bub { align-self: flex-end; max-width: 85%; margin-top: -2.6em; padding: .8em 1em; border-radius: 1em 1em .3em 1em; background: var(--blue); color: #fff; font-size: .86em; line-height: 1.4; animation: bub .6s cubic-bezier(.2, 1.3, .3, 1) 1s both; }
@keyframes bub { from { transform: translateY(.8em) scale(.85); opacity: 0; transform-origin: 100% 100%; } }
.sent { align-self: flex-end; color: var(--blue); font-size: .75em; font-weight: 600; animation: vin .5s 1.6s both; }

.nav { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.nav b { font: 400 1.6em/1 var(--serif); }
.nav b span { color: var(--muted); font-size: .7em; }
.nav small { font-size: .68em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .45em .9em; border: 1px solid #c9d2e0; border-radius: 99em; color: var(--muted); }
.cal, .rec { min-width: 0; display: flex; flex-direction: column; padding: 1em 1.1em; border: 1px solid var(--line); border-radius: .6em; background: #fff; }
.app h4 { display: flex; align-items: center; gap: .6em; margin: 0 0 .8em; font: 600 .95em/1.2 var(--sans); }
.av { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.grid { flex: 1; display: grid; grid-template: auto repeat(3, 1fr) / 2.9em repeat(4, 1fr); gap: .4em; font-size: .8em; }
.grid .d { text-align: center; font-weight: 600; color: var(--muted); }
.grid .h { align-self: center; color: #8a94a6; font-size: .9em; }
.c { display: grid; align-content: center; min-height: 3.9em; padding: .5em .65em; border-radius: .6em; background: #f4f6fb; color: #9aa3b2; line-height: 1.2; }
.c small { font-size: .82em; }
.c.busy { background: repeating-linear-gradient(135deg, #eef1f6 0 .5em, #e6eaf1 .5em 1em); color: #6b7486; }
.c.open { background: #fff; color: var(--blue); border: 1px dashed var(--blue-mid); }
.c.pend { background: var(--blue-soft); color: var(--blue); outline: 2px solid var(--blue); animation: pend .8s ease-in-out infinite alternate; }
@keyframes pend { to { outline-color: #1f4fe000; background: #fff; } }
.c.lea { background: var(--blue); color: #fff; box-shadow: 0 .5em 1.4em #1f4fe066; }
.app.in .pop { animation: pop .8s cubic-bezier(.2, 1.5, .3, 1) .8s both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.rec ol { display: grid; gap: .5em; margin: 0; padding: 0; list-style: none; }
.rec li { display: flex; align-items: center; gap: .6em; padding: .75em .7em; border-radius: .6em; font-size: .88em; color: #9aa3b2; }
.rec li i { display: grid; place-items: center; flex: none; width: 1.5em; height: 1.5em; border: 1.5px solid #cfd6e2; border-radius: 50%; font-size: .8em; font-style: normal; }
.rec li b { margin-left: auto; font-weight: 600; white-space: nowrap; }
.rec li.done { color: var(--ink); }
.rec li.done i { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); font-weight: 700; }
.rec li.now { background: var(--blue-soft); }
.app.in li.now { animation: now .8s cubic-bezier(.2, .8, .2, 1) 1s both; }
@keyframes now { from { background: #fff0; transform: translateX(1em); opacity: 0; } }
.rec .empty { margin: 0; font-size: .88em; color: #9aa3b2; }
.toast { position: absolute; top: .8em; right: 1em; z-index: 2; display: flex; align-items: center; gap: .8em; padding: .75em 1.2em .75em .8em; border-radius: .6em; background: var(--ink); color: #fff; box-shadow: 0 1em 2.6em #0b122055; }
.app.in .toast { animation: toast .7s cubic-bezier(.2, 1.3, .3, 1) 1.1s both; }
@keyframes toast { from { transform: translateY(-150%) scale(.9); opacity: 0; } }
.toast > i { display: grid; place-items: center; flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--blue); font-style: normal; }
.toast b { display: block; font-size: 1em; }
.toast small { display: block; font-size: .8em; color: #aebbd6; }
button.toast { border: 0; text-align: left; transition: background .25s; }
button.toast:hover { background: var(--blue); }
button.toast:hover > i { background: #fff; color: var(--blue); }

/* Anreize zum Mitmachen: Finger-Punkt mit Schild im Handy, Mauszeiger mit Schild an der Laptop-Meldung */
.hint { position: absolute; z-index: 5; display: flex; align-items: flex-start; pointer-events: none; filter: drop-shadow(0 .4em .6em #0b122033); animation: nudge 1.4s ease-in-out infinite; }
.hint b { margin: .9em 0 0 -.3em; padding: .55em .9em; border-radius: .3em 1em 1em; background: var(--blue); color: #fff; font: 600 .8em/1 var(--sans); white-space: nowrap; }
.hint i { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; border: .15em solid #fff; background: #1f4fe080; }
.hint svg { flex: none; width: 1.5em; height: 1.5em; }
@keyframes nudge { 50% { translate: -.3em -.3em; } }
.pcta, .rates { position: relative; }
.pcta:enabled, .rates:has(.hint) { margin-bottom: 2.6em; }   /* Platz für das Schild darunter */
.pcta .hint { right: 6%; top: 48%; font-size: 1.3em; }
.rates .hint { left: 44%; top: 62%; font-size: 1.25em; }
.toast .hint { right: calc(100% - .9em); top: 42%; flex-direction: row-reverse; font-size: 1.15em; }
.toast .hint svg { scale: -1 1; }
.toast .hint b { margin: .9em -.3em 0 0; border-radius: 1em .3em 1em 1em; font-size: .8em; }
/* Fortschritt und Weiter-Knopf */
.rail { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 760px; margin: 8px auto 0; }
.bar { flex: 1; height: 3px; border-radius: 2px; background: #0b122018; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
#count { font: 600 .72rem/1 var(--sans); letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
/* wie der Button der Startseite: dunkles Rechteck, beim Überfahren blau */
.next { padding: 11px 18px; border: 1px solid #39425a; border-radius: 2px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; white-space: nowrap; transition: background .25s; }
.next:hover { background: var(--blue); }
.next { position: relative; }
.next.cue { animation: ring 2s ease-out infinite; }
.next .hint { right: 40%; bottom: 120%; font-size: 1rem; flex-direction: row-reverse; align-items: flex-end; }
.next .hint b { margin: 0 -.3em .9em 0; border-radius: 1em 1em .3em 1em; }
.next.late .hint { animation: hint-in .5s ease 2.4s both, nudge 1.4s ease-in-out 2.9s infinite; }
.next.late.cue { animation-delay: 2.4s; }
@keyframes hint-in { from { opacity: 0; transform: translateY(.5em); } }
.fine { max-width: 760px; margin: 8px auto 0; text-align: center; font-size: .7rem; line-height: 1.4; color: var(--muted); }
.fine button { padding: 0 0 0 6px; border: 0; background: none; color: var(--ink); font-size: inherit; text-decoration: underline; }

@media (min-width: 900px) {
  .intro { grid-template-columns: 2.2fr 1fr; }
  .meta { border-left: 1px solid var(--line); }
}
@media (min-width: 560px) and (max-width: 899px) { .meta { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1099px) {
  /* Schmaler Bildschirm: Mit beiden Geräten stehen sie versetzt übereinander statt nebeneinander */
  .stage { --bs: .55; --bpx: -26vw; --bpy: -9cqh; --blx: 10vw; --bly: 9cqh; }
  .stage[data-shot=both] { --lS: .72; }
}
@media (max-width: 699px) {
  .stage { padding: 86px 14px 10px; --pf: 270px; --lw: min(100vw - 28px, (100svh - 345px) / 1.06); }
  .cap { min-height: 8.4rem; }
  .cap .eye { margin-bottom: 8px; }
  .lscreen { aspect-ratio: 1 / 1.06; border-width: 5px; }
  .lbar, .app { font-size: 3.05cqw; }
  .app { gap: .7em; padding: .9em 1em; }
  .side { padding-right: .6em; }
  .tab { padding: .35em; }
  .tn { display: none; }
  .bd { left: 1.6em; top: .2em; }
  .pane.cal { grid-template-columns: 1fr; gap: .7em; }
  .pane.cal .rec { display: none; }   /* zu eng: der Verlauf steht auf der Kundenkarte (Lea) */
  .pane { gap: .6em; }
  .who { padding: .6em .7em; }
  .tl li, .ml li { padding: .3em 0; }
  .tl small, .ml small { display: none; }
  .sum2 b { font-size: 1.6em; }
  .bill { width: 88%; }
  .lbtn { padding: .55em .8em; }
  .lbtn .hint { left: 55%; }
  .cal, .rec { padding: .7em .8em; }
  .app h4 { margin-bottom: .5em; }
  .c { min-height: 2.9em; }
  .rec ol { gap: .15em; }
  .rec li { padding: .28em .5em; font-size: .84em; }
  /* Die Meldung liegt über der Kopfzeile, nicht über dem Kalender */
  .nav { min-height: 3.3em; }
  .toast { top: .6em; left: .8em; right: .8em; padding: .5em .9em .5em .6em; }
  .toast > i { width: 1.9em; height: 1.9em; }
  .toast .hint { right: 1.4em; top: 74%; flex-direction: row; }
  .toast .hint svg { scale: 1; }
  .toast .hint b { margin: .9em 0 0 -.3em; border-radius: .3em 1em 1em; }
  .av { width: 1.6em; height: 1.6em; }
  .fly b { font-size: .72rem; }
  .rail { margin-top: 4px; }
  .next { padding: 8px 14px; }
  .fine { font-size: .64rem; margin-top: 6px; }
}
