.wf-layout {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.wf-copy h2 { margin: .28em 0 .58em; max-width: 9em; }
.wf-list { min-width: 0; border: 0; padding: 0; margin: 0; }
.wf-sr, .wf-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wf-choice {
  display: grid;
  grid-template-columns: 2rem 1fr 1.4rem;
  align-items: start;
  gap: .75rem;
  padding: 1.04rem 0 1.12rem;
  position: relative;
  color: var(--ink);
  border-top: 1px solid var(--line, #c8d1d5);
  cursor: pointer;
  touch-action: manipulation;
}
.wf-choice:last-child { border-bottom: 1px solid var(--line, #c8d1d5); }
.wf-choice:focus-within { outline: 2px solid #4078b6; outline-offset: 3px; z-index: 1; }
.wf-number {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  font: 650 .71rem/1 var(--body, sans-serif);
  font-variant-numeric: tabular-nums;
  border: 1px solid #aeb9c1;
  border-radius: 50%;
  margin-top: .1em;
}
.wf-choice input:checked + .wf-number { background: var(--yellow); border-color: var(--yellow); }
.wf-choice-text { display: grid; gap: .27rem; min-width: 0; }
.wf-choice-text strong { font: 690 clamp(1.09rem, 1.55vw, 1.35rem)/1.28 var(--display, sans-serif); letter-spacing: -.036em; }
.wf-choice-text > span { font: 430 1rem/1.53 var(--body, sans-serif); color: #435a6a; }
.wf-indicator { display: grid; width: .95rem; height: .95rem; border: 1px solid #879baa; border-radius: 50%; margin-top: .33rem; place-items: center; }
.wf-choice input:checked ~ .wf-indicator { border-color: var(--ink); }
.wf-choice input:checked ~ .wf-indicator::after { content: ''; width: .43rem; height: .43rem; border-radius: 50%; background: var(--ink); }
@media (hover: hover) {
  .wf-choice:hover .wf-choice-text strong { text-decoration: underline; text-underline-offset: .17em; }
}

.wf-board {
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  aspect-ratio: 1.26;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  background-color: #dceaf5;
  background-image:
    linear-gradient(rgba(99, 144, 177, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 144, 177, .14) 1px, transparent 1px);
  background-size: 21px 21px;
  background-position: center center;
  border: 1px solid #c9dbe6;
  border-radius: .45rem;
}
.wf-still { position: absolute; inset: 3% 3% 9%; }
.wf-folder, .wf-pocket {
  position: absolute;
  top: 19%;
  bottom: 8%;
  left: 20%;
  width: 56%;
  transform: rotate(-9deg);
  border-radius: .25em .6em .55em .38em;
}
.wf-folder {
  background: #193c61;
  box-shadow: .2cqw .5cqw .45cqw #12345440, 1.5cqw 2.8cqw 3.2cqw #203b603a;
}
.wf-month {
  position: absolute;
  display: grid;
  place-items: center;
  left: 10%;
  top: -8%;
  height: 10%;
  width: 26%;
  background: var(--yellow);
  color: var(--ink);
  font: 720 clamp(.64rem, 2.2cqw, .88rem)/1 var(--body, sans-serif);
  border-radius: .33em .33em 0 0;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.wf-spine {
  position: absolute;
  inset: 0 auto 0 5%;
  width: 2.4%;
  border-inline: 1px solid #8a9eb066;
  background: #244b70;
}
.wf-file {
  position: absolute;
  left: 37%;
  top: 19%;
  width: 39%;
  height: 57%;
  padding: 4.8% 3% 0;
  box-sizing: border-box;
  background: #fffdf6;
  color: #82949e;
  font: 620 3cqw/1 var(--display, sans-serif);
  transform: rotate(1deg);
  box-shadow: .45cqw .7cqw .65cqw #19344a32;
  border-top: 1px solid #fff;
}
.wf-file i { display: block; border-top: 1px solid #c9d0ce; margin-top: 10%; }
.wf-pocket {
  background: linear-gradient(105deg, #254f76, #2b537b 65%, #214972);
  clip-path: polygon(0 41%, 8% 41%, 17% 48%, 100% 48%, 100% 100%, 0 100%);
  border: 1px solid #31577a;
}
.wf-pocket img {
  position: absolute;
  left: 13%;
  bottom: 9%;
  opacity: .8;
  filter: brightness(0) invert(1);
  width: 13%;
  height: auto;
}
.wf-slip {
  position: absolute;
  width: 40%;
  top: 24%;
  left: 40%;
  transform: rotate(8deg);
  filter: drop-shadow(.25cqw .6cqw .64cqw #2b374d42);
}
.wf-slip-inner {
  display: none;
  padding: 10% 10.2% 13%;
  min-height: 36.2cqw;
  box-sizing: border-box;
  color: #273938;
  clip-path: polygon(0 0,100% 0,100% 100%,95% 98.5%,90% 100%,85% 98.5%,80% 100%,75% 98.5%,70% 100%,65% 98.5%,60% 100%,55% 98.5%,50% 100%,45% 98.5%,40% 100%,35% 98.5%,30% 100%,25% 98.5%,20% 100%,15% 98.5%,10% 100%,5% 98.5%,0 100%);
  background: linear-gradient(110deg, #fffdfa 1%, #fffcf4 57%, #fbf7eb);
  font-family: 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}
.wf-slip-beleg { display: block; }
.wf-kicker, .wf-doc-title, .wf-doc-ref { display: block; text-align: center; }
.wf-kicker { font-size: clamp(.49rem, 1.6cqw, .72rem); text-transform: uppercase; letter-spacing: .11em; }
.wf-doc-title { margin: .46em 0 .23em; font: 680 clamp(.82rem, 3.65cqw, 1.65rem)/1.2 var(--display, sans-serif); letter-spacing: -.055em; }
.wf-doc-ref, .wf-items, .wf-total, .wf-seal { font-size: clamp(.48rem, 1.67cqw, .77rem); }
.wf-doc-ref { margin-bottom: 13%; }
.wf-items { display: grid; gap: .6em; padding: 9% 0; border-block: 1px dashed #7e8884; }
.wf-items span:last-child { text-align: right; }
.wf-total { display: flex; justify-content: space-between; gap: .4em; align-items: baseline; margin: 8% 0; }
.wf-total strong { font-size: 1.43em; white-space: nowrap; }
.wf-barcode {
  display: block;
  width: 50%;
  height: 2.3cqw;
  margin: 8% auto 0;
  background: repeating-linear-gradient(90deg, #394642 0 1px, transparent 1px 3px, #394642 3px 6px, transparent 6px 7px, #394642 7px 8px, transparent 8px 11px);
}
.wf-seal { display: table; margin: 0 auto; padding: .25em .6em; border: 1px solid #3b6559; border-radius: .14em; color: #355a50; font-weight: bold; text-transform: uppercase; transform: rotate(-4deg); }
.wf-caption {
  position: absolute;
  bottom: 4%;
  left: 4%;
  font: 560 .76rem/1.25 var(--body, sans-serif);
  color: #455f70;
}

.workflow[data-step='zahlung'] .wf-slip-beleg, .workflow[data-step='buchung'] .wf-slip-beleg { display: none; }
.workflow[data-step='zahlung'] .wf-slip-zahlung, .workflow[data-step='buchung'] .wf-slip-buchung { display: block; }
@supports selector(:has(input:checked)) {
  .workflow:has(.wf-choice input:not([value='beleg']):checked) .wf-slip-beleg { display: none; }
  .workflow:has(.wf-choice input[value='zahlung']:checked) .wf-slip-zahlung,
  .workflow:has(.wf-choice input[value='buchung']:checked) .wf-slip-buchung { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .wf-slip-inner { animation: wf-sheet-in .2s ease-out; }
  @keyframes wf-sheet-in { from { opacity: .75; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 770px) {
  .wf-layout { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .wf-copy h2 { max-width: none; }
  .wf-board { aspect-ratio: 1.45; }
  .wf-choice { grid-template-columns: 1.75rem 1fr 1rem; gap: .65rem; }
}
@media (max-width: 430px) {
  .wf-board { aspect-ratio: 1.24; }
  .wf-still { inset: 1% 0 9%; }
  .wf-slip { width: 44%; left: 39%; }
}
