/* Seitenstile aus dem Design (start.html, pruefung.html), erweitert für die App */

/* ---- aus design/start.html ---- */

  .hero { text-align: center; padding: clamp(3.5rem, 11vh, 7rem) 0 0; }
  .hero .label { display: block; margin-bottom: 22px; }
  .hero .display { margin-inline: auto; }
  .hero .display .l2 { white-space: nowrap; }
  @media (max-width: 820px) { .hero .display .l2 { white-space: normal; } }
  .hero .lead { margin: 28px auto 0; max-width: 34em; text-wrap: balance; }

  .drop-row { width: min(100% - 2rem, 600px); margin: 40px auto 0; }
  @media (min-width: 821px) {
    .drop[data-layout="row"] { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; gap: 18px; padding: 12px 12px 12px 22px; align-items: center; border-radius: 24px; box-shadow: none; border-color: var(--tinte-20); }
    .drop[data-layout="row"] .drop-doc { width: 30px; height: 36px; }
    .drop[data-layout="row"] .drop-title { margin: 0; font: 600 1.0625rem/1.2 var(--font-ui); letter-spacing: 0; }
    .drop[data-layout="row"] .drop-meta { font-size: var(--fs-tiny); margin-top: 2px; }
    .drop[data-layout="row"] .drop-actions { margin: 0; }
    .drop[data-layout="row"] .btn { border-radius: 12px; box-shadow: none; }
    .drop[data-layout="row"].is-hover { box-shadow: 0 4px 0 var(--tinte); }
  }
  .recent { margin: 16px 0 0; text-align: center; font-size: var(--fs-small); color: var(--fg-muted); }
  .recent a { font-weight: 600; color: var(--fg); text-underline-offset: 3px; }

  .drop .busy-only, .drop .done-only, .drop .err-only { display: none; }
  .drop.is-busy .idle-only, .drop.is-done .idle-only, .drop.is-error .idle-only { display: none; }
  .drop.is-busy .busy-only { display: contents; }
  .drop.is-done .done-only { display: contents; }
  .drop.is-error .err-only { display: contents; }
  .drop.is-busy, .drop.is-done { padding-block: 36px 32px; }
  .drop.is-done { background: var(--surface); }
  .done-sum { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin: 2px 0 6px; }
  .done-sum div { display: grid; gap: 2px; }
  .done-sum .num { font-size: 1.75rem; line-height: 1; }

  /* Buchungsband: roher Berichtstext links, saubere Buchungszeilen rechts */
  .band { position: relative; margin-top: clamp(1.5rem, 4vh, 3rem); height: clamp(120px, 16vw, 230px); overflow: hidden; }
  .band svg { position: absolute; left: 50%; top: 0; width: max(1440px, 100%); height: 100%; transform: translateX(-50%); overflow: visible; max-width: none; }
  .band .raw { font: 500 19px var(--font-ui); fill: var(--tinte-55); }
  .band .clean { font: 600 19px var(--font-ui); fill: var(--papier); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
  .band .clean .k { fill: inherit; }
  .band .seal-ring { fill: var(--surface); stroke: var(--tinte); stroke-width: 1.5; }

  .trust { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem); flex-wrap: wrap; padding: 28px 0 56px; color: var(--fg-muted); font-size: var(--fs-small); }
  .trust span { display: inline-flex; align-items: center; gap: 8px; }
  .trust svg { width: 16px; height: 16px; color: var(--tanne); }

  .sig { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; width: min(100% - 2rem, 1060px); margin: clamp(2rem, 6vh, 3.5rem) auto 0; }
  .slips { position: relative; height: 200px; justify-self: end; width: 330px; color: var(--tinte-55); }
  .slips span { position: absolute; right: calc(110px + var(--x)); top: var(--y); white-space: nowrap; font: 500 .875rem/1 var(--font-ui); color: var(--tinte-55); padding: 6px 9px; background: var(--papier-tief); border-radius: 4px; transform: rotate(var(--r)); }
  .slips .flow { position: absolute; right: 0; top: 0; width: 110px; height: 200px; color: var(--tinte-55); }
  .out { display: flex; align-items: center; justify-self: start; }
  .out .flow { width: 90px; height: 40px; color: var(--tinte-55); }

  /* Ein Moment beim Laden: Zettel ordnen sich, Summe wird gezogen */
  @media (prefers-reduced-motion: no-preference) {
    .slips span { animation: slip .7s var(--ease-out) both; }
    .slips span:nth-child(2) { animation-delay: .08s; } .slips span:nth-child(3) { animation-delay: .16s; } .slips span:nth-child(4) { animation-delay: .24s; } .slips span:nth-child(5) { animation-delay: .32s; }
    .receipt .tot dd { animation: rule .5s .9s var(--ease-out) both; }
    .r-ok { animation: fade .4s 1.3s both; }
    .file { animation: fade .4s 1.5s both; }
  }
  @keyframes slip { from { opacity: 0; transform: translateX(-24px) rotate(calc(var(--r) * 2)); } }
  @keyframes rule { from { border-bottom-color: transparent; } }
  @keyframes fade { from { opacity: 0; transform: translateY(4px); } }

  @media (max-width: 980px) {
    .left { width: min(100% - 2rem, 600px); margin-inline: auto; }
    .left .drop-row { width: 100%; }
    .sig { grid-template-columns: 1fr; justify-items: center; gap: 0; }
    .slips, .out .flow { display: none; }
    .out { margin-top: 24px; }
  }
  @media (max-width: 820px) {
    .sig { margin-top: 30px; width: min(100% - 2rem, 600px); justify-items: stretch; }
    .receipt { width: 100%; }
    .out { justify-self: stretch; }
    .file { width: 100%; }
  }
  @media (min-width: 981px) {
    .stage { width: min(100% - 2rem, var(--maxw)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; padding: clamp(2.5rem, 8vh, 5.5rem) 0 clamp(4rem, 12vh, 7rem); }
    .stage .hero { text-align: left; padding: 0; }
    .stage .hero .display { margin: 0; font-size: clamp(4rem, 6.6vw, 6.25rem); }
    .stage .hero .lead { margin: 26px 0 0; max-width: 540px; text-wrap: pretty; }
    .stage .drop-row { width: 100%; max-width: 540px; margin: 36px 0 0; }
    .stage .sig { width: auto; margin: 0; grid-template-columns: 1fr; justify-items: end; }
    .stage .slips { position: absolute; left: -36px; top: 40px; width: 200px; height: 220px; z-index: 0; }
    .stage .slips span { right: auto; left: calc(var(--x) * .6); }
    .stage .slips .flow { display: none; }
    .stage .receipt { position: relative; z-index: 1; margin-right: 0; width: 400px; padding: 24px 28px 26px; }
    .stage .receipt dd { font-size: 1.3125rem; }
    .stage .receipt .tot dd { font-size: 2.5rem; }
    .stage .out { margin: 24px 0 0; width: 400px; justify-self: end; }
    .stage .out .flow { display: none; }
    .stage .out .file { width: 100%; }
  }
  @media (min-width: 981px) {
    .stage { align-items: end; padding-bottom: clamp(3rem, 8vh, 5rem) !important; }
    .stage .sig { position: relative; padding: 18px 10px 0 0; }
    .stage .receipt { width: 430px; transform: rotate(-1.1deg); box-shadow: 0 4px 0 var(--tinte); padding-bottom: 50px; }
    .stage .sig::before, .stage .sig::after { content: ""; position: absolute; right: 2px; top: 14px; width: 430px; height: calc(100% - 70px); border: 1.5px solid var(--tinte); border-radius: 10px; background: var(--papier-tief); transform: rotate(2.4deg); z-index: 0; }
    .stage .sig::after { transform: rotate(.6deg); background: var(--leinen); right: 6px; top: 16px; }
    .stage .receipt .tot dd { font-size: 2.75rem; }
    .stage .out { position: relative; z-index: 2; width: 360px; margin: -22px 34px 0 0; transform: rotate(2deg); }
    .stage .out .file { box-shadow: 0 3px 0 var(--tinte); border: 1.5px solid var(--tinte); background: var(--surface); }
  }
  .proof { margin-top: clamp(2rem, 6vh, 4.5rem); background: var(--tanne); color: var(--papier); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 64px 0 56px; }
  .proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .proof-t { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 10px; }
  .proof-d { margin: 0; color: rgba(255,255,235,.74); max-width: 30ch; }
  .proof-recent { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,235,.18); font-size: var(--fs-small); color: rgba(255,255,235,.74); }
  .proof-recent a { color: var(--papier); font-weight: 600; text-underline-offset: 3px; }
  @media (max-width: 820px) { .proof { margin-top: 36px; border-radius: 40px 40px 0 0; padding: 40px 0 40px; } .proof-grid { grid-template-columns: 1fr; gap: 22px; } .proof-t { font-size: 1.5rem; margin-bottom: 6px; } }
  .band-m { display: none; }
  .l-short { display: none; }
  .band-m .raw-m { font: 500 13px var(--font-ui); fill: var(--tinte-55); }
  .band-m .clean-m .k { fill: inherit; }
  .band-m .clean-m { font: 600 13.5px var(--font-ui); fill: var(--papier); font-variant-numeric: tabular-nums; }
  .no-drag { display: none; }
  @media (hover: none) { .can-drag { display: none; } .no-drag { display: inline; } }
  @media (max-width: 820px) {
    .hero { padding-top: 2.25rem; }
    .hero .display { font-size: clamp(3rem, 14vw, 3.75rem); }
    .hero .lead { font-size: 1.0625rem; margin-top: 18px; max-width: 22em; }
    .drop-row { margin-top: 24px; }
    .drop[data-layout="row"] { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 14px; padding: 16px; box-shadow: none; border-radius: 22px; align-items: center; }
    .drop[data-layout="row"] .drop-doc { width: 30px; height: 36px; }
    .drop[data-layout="row"] .drop-title { margin: 0; font: 600 1rem/1.2 var(--font-ui); letter-spacing: 0; }
    .drop[data-layout="row"] .drop-meta { font-size: var(--fs-tiny); margin-top: 2px; }
    .drop[data-layout="row"] .drop-actions { grid-column: 1 / -1; width: 100%; margin: 4px 0 0; }
    .drop[data-layout="row"] .drop-actions .btn { width: 100%; border-radius: 12px; box-shadow: none; }
    .drop[data-layout="row"] { border-color: var(--tinte-20); background: var(--surface); }
    .l-long { display: none; } .l-short { display: inline; }
    .hero { text-align: left; }
    .hero .display { margin-inline: 0; }
    .hero .lead { margin-left: 0; text-wrap: pretty; max-width: 21em; }
    .drop-row { width: min(100% - 2rem, 600px); }
    .drop[data-layout="row"] { border: 0; background: transparent; box-shadow: none; padding: 0; gap: 10px 12px; }
    .drop[data-layout="row"] .drop-actions { order: -1; margin: 0 0 4px; }
    .drop[data-layout="row"] .drop-doc { display: none; }
    .drop[data-layout="row"] .drop-title { display: none; }
    .drop[data-layout="row"] .drop-meta { font-size: var(--fs-small); margin: 0; }
    .band { display: none; }
    .band-m { display: block; margin: 22px 0 0; }
    .band-m svg { width: 100%; height: auto; }
    .hero .lead { font-size: 1rem; }
  }


/* ---- aus design/pruefung.html ---- */

  .page { padding: 48px 0 96px; }
  .crumbs { font-size: var(--fs-small); color: var(--fg-muted); margin: 0 0 18px; }
  .crumbs a { color: var(--fg-muted); text-underline-offset: 3px; }
  .head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
  .head .h1 { max-width: 14ch; }
  .meta { margin: 30px 0 0; color: var(--fg-muted); font-size: var(--fs-small); display: flex; gap: 6px 22px; flex-wrap: wrap; }
  .meta b { color: var(--fg); font-weight: 600; }
  .head-actions { display: grid; gap: 10px; width: 300px; }
  .head-actions .btn { width: 100%; }

  .konten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
  .konto .num-xl { display: block; }
  .konto .label { display: block; margin-bottom: 6px; white-space: nowrap; }
  .kontierung { align-self: start; }

  .probe { margin: 0; display: grid; gap: 0; }
  .probe > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; }
  .probe dt { font-size: var(--fs-small); color: var(--fg-muted); font-weight: 600; }
  .probe dd { margin: 0; font-size: 1.375rem; }
  .probe .op { color: var(--fg-subtle); margin-right: .3em; }
  .probe .sum { border-top: 1.5px solid var(--tinte); margin-top: 4px; padding-top: 12px; }
  .probe .sum dt { color: var(--fg); }
  .probe .sum dd { font-size: var(--fs-num-xl); line-height: 1; padding-bottom: 6px; border-bottom: 4px double var(--tinte); }
  .facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 32px 0 0; }
  .facts div { padding: 0 28px; border-left: 1px solid var(--line); }
  .facts div:first-child { padding-left: 0; border-left: 0; }
  .facts dt { font-size: var(--fs-tiny); color: var(--fg-muted); font-weight: 600; }
  .facts dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.1; }
  .note-act { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 18px 18px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-soft); margin-top: 20px; }
  .note-act .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); display: grid; place-items: center; }
  .note-act .ico svg { width: 20px; height: 20px; }
  .note-act p { margin: 0; }
  .table tr.total td.num { border-bottom: 4px double var(--tinte); }
  @media (max-width: 720px) { .facts { grid-template-columns: repeat(2, auto); row-gap: 14px; } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } .note-act { grid-template-columns: auto 1fr; } .note-act .btn { grid-column: 1 / -1; } }
  .sec { margin-top: 64px; }
  .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
  .sec-head p { margin: 6px 0 0; max-width: 46em; }

  details.acc { border-top: 1.5px solid var(--tinte); }
  details.acc:last-of-type { border-bottom: 1.5px solid var(--tinte); }
  details.acc > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto auto 24px; align-items: center; gap: 20px; padding: 22px 4px; }
  details.acc > summary::-webkit-details-marker { display: none; }
  details.acc > summary .konto-name { font-size: 1.625rem; }
  details.acc > summary .chev { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease-out); }
  details.acc[open] > summary .chev { transform: rotate(180deg); }
  details.acc > summary:hover .konto-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
  .acc-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; padding: 4px 4px 32px; }
  .acc-body > * { min-width: 0; }
  .saldo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; padding: 18px 20px; margin-top: 18px; border-radius: var(--r-md); background: var(--surface-sunk); color: var(--tanne); }
  .saldo .num { font-size: 1.5rem; color: var(--tinte); }
  .saldo .op { font-family: var(--font-display); font-size: 1.5rem; color: var(--tanne); }
  .kontierung .row { justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .kontierung .row:last-child { border-bottom: 0; }
  .kontierung .code { font-size: .9375rem; }
  .sh { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-xs); background: var(--leinen); font-size: var(--fs-tiny); font-weight: 700; margin-right: 8px; }

  .preview td:first-child { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
  .preview .txt { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-muted); }

  .export { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 64px; padding: 36px 40px; border-radius: var(--r-lg); }
  .export .h2 { color: var(--papier); }
  .export p { margin: 10px 0 0; }
  .export .btn-primary { box-shadow: 0 2px 0 #062a24; border-color: #062a24; }
  .export .files { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 16px; font-size: var(--fs-small); }

  @media (max-width: 980px) {
    .konten { grid-template-columns: 1fr; }
    .acc-body { grid-template-columns: 1fr; }
    .head { grid-template-columns: 1fr; }
    .head-actions { width: 100%; }
    .head-actions .btn { min-width: 0; }
    .export { grid-template-columns: 1fr; padding: 28px 24px; }
  }
  @media (max-width: 720px) {
    .page { padding-top: 32px; }
    details.acc > summary { grid-template-columns: 1fr auto 18px; gap: 12px; }
    details.acc > summary .hide-s { display: none; }
  }
