/* Beleg: the bank's paper. Warm paper, black ink, deep green for money back, stamp blue as the only blue. */
@font-face { font-family: Aeonik; src: url(../../../gemeinsam/fonts/Aeonik-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Aeonik; src: url(../../../gemeinsam/fonts/Aeonik-Medium.woff2) format('woff2'); font-weight: 500 700; font-display: swap; }
:root {
  --papier: #f6f3ec;
  --blatt: #fffdf8;       /* receipt paper */
  --tinte: #16181d;
  --grau: #5b574f;        /* 6.6:1 on paper */
  --linie: #ddd6c8;
  --gruen: #0e5a43;       /* money back (7.9:1) */
  --stempel: #2f3c9e;     /* stamp ink */
  --rot: #b3261e;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --weich: cubic-bezier(.16,1,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
/* The stamp lands with a scale-in; it must never widen the page on the phone */
html, body { overflow-x: clip; }
body { margin: 0; font: 400 17px/1.55 Aeonik, "Helvetica Neue", Arial, sans-serif; color: var(--tinte); background: var(--papier); -webkit-font-smoothing: antialiased; hyphens: manual; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -.022em; margin: 0; }
p, dl, dd, figure { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--stempel); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 36px); margin-inline: auto; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 24px; border-radius: 4px; border: 0; background: var(--tinte); color: var(--blatt); font-weight: 500; font-size: 17px; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 #000; transition: transform .15s var(--weich), box-shadow .15s; white-space: nowrap; }
.knopf:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #000; }
.knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The receipt: paper slip with a torn zigzag edge, monospace figures, dotted leaders */
.beleg { position: relative; background: var(--blatt); padding: 18px 18px 22px; margin-bottom: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 12px 24px -8px rgba(40,30,10,.14); }
/* Torn bottom edge: a row of small triangles in paper colour below the slip */
.beleg::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; background: conic-gradient(from -45deg at bottom, var(--blatt) 90deg, #0000 0) 0 0 / 18px 100% repeat-x; filter: drop-shadow(0 3px 2px rgba(40,30,10,.08)); }
.beleg-kopf { display: flex; justify-content: space-between; gap: 10px; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); padding-bottom: 10px; border-bottom: 1px dashed #bdb5a5; }
.beleg-titel { font: 500 15px/1.3 Aeonik, sans-serif; margin: 12px 0 4px; }
/* A long amount ("10.000–30.000 €") moves below its label on narrow phones instead of being cut off */
.zeilen div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 5px 0; font: 14px/1.45 var(--mono); }
.zeilen dt { white-space: nowrap; }
@media (max-width: 359px) { .beleg { padding-inline: 12px; } .zeilen div { font-size: 12.5px; } .zeilen dt { white-space: normal; } .beleg-summe strong { font-size: 21px; } }
.zeilen div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted #b5ad9c; transform: translateY(-4px); min-width: 12px; }
.zeilen dd { order: 2; margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gestrichen { position: relative; color: var(--rot); }
.gestrichen::before { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 2px; background: var(--rot); transform-origin: left; }
.bewegung .gestrichen::before { transform: scaleX(0); animation: streichen .6s var(--weich) .7s forwards; }
@keyframes streichen { to { transform: scaleX(1); } }
.beleg-summe { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--tinte); font: 500 14px/1.3 var(--mono); }
.beleg-summe strong { font: 500 25px/1.1 Aeonik, sans-serif; color: var(--gruen); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.beleg-fuss { margin-top: 8px; font: 11.5px/1.4 var(--mono); color: var(--grau); }

/* Legal footer line (footer A, Julius 07.10.2026), both pages: each part nowrap, the "·" comes from ::before and the
   negative start margin pushes a dot at a line start out of the clipped box, so a wrap never starts with a dot. */
.recht { overflow: hidden; }
.recht p { margin: 0; margin-inline-start: -1.3em; display: flex; flex-wrap: wrap; align-items: center; }
.recht span { white-space: nowrap; }
.recht span::before { content: "·"; content: "·" / ""; display: inline-block; width: 1.3em; text-align: center; }
.recht a { display: inline-block; padding: 10px 0; color: var(--tinte); }

/* Rubber stamp in stamp ink */
.stempel { position: absolute; right: 8px; top: var(--stempel-top, 17%); padding: 5px 10px; border: 2.5px solid var(--stempel); border-radius: 5px; color: var(--stempel); font: 700 13.5px/1.1 Aeonik, sans-serif; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-7deg); opacity: .88; mix-blend-mode: multiply; pointer-events: none; background: rgba(255,253,248,.4); }
.bewegung .stempel { opacity: 0; transform: rotate(-7deg) scale(1.6); animation: stempeln .35s cubic-bezier(.3,1.4,.5,1) 1.35s forwards; }
@keyframes stempeln { to { opacity: .88; transform: rotate(-7deg) scale(1); } }

/* Language choice (scripts/sprachen.mjs): globe and the language written out; the list opens under it, aligned right. */
.sprachwahl { position: relative; flex: none; }
.sprachwahl summary { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 7px; border-radius: 4px; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.sprachwahl summary::-webkit-details-marker { display: none; }
.sprachwahl summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.sprachwahl summary:hover { background: #efe9dc; }
.sprachwahl[open] summary { background: var(--tinte); color: var(--blatt); }
.sprachliste { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 168px; margin: 0; padding: 6px; list-style: none; background: var(--blatt); border: 1px solid var(--linie); border-radius: 4px; box-shadow: 0 12px 24px -8px rgba(40,30,10,.18); }
.sprachliste a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 3px; text-decoration: none; font-weight: 500; }
.sprachliste a:hover { background: var(--papier); }
.sprachliste a[aria-current]::after { content: ''; flex: none; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--stempel); }

/* Shared look of the ad-target forms /a/ /b/ /c/: Beleg world (paper, ink, green, stamp blue).
   The form is the landing page here: value line, trust line and legal footer live on it. Mobile first. */
body { min-height: 100dvh; display: flex; flex-direction: column; }
.f-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--linie); background: var(--papier); }
.marke img { width: 104px; height: auto; }
.f-kopf .sprachwahl { margin-left: auto; }   /* next to „Mehr erfahren“ */
.mehr { font-size: 14.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--tinte); padding: 10px 0; }

.fortschritt { height: 4px; background: #e4ddcf; }
.fortschritt span { display: block; height: 100%; width: calc(var(--anteil, 0) * 100%); background: var(--gruen); transition: width .35s var(--weich); }

.f-buehne { flex: 1; width: min(560px, 100% - 28px); margin: 16px auto 0; }
.zaehler { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grau); margin-bottom: 8px; }

.schritt[hidden] { display: none; }
.bewegung .schritt:not([hidden]):not(.sofort) { animation: rein .3s var(--weich) both; }
@keyframes rein { from { opacity: 0; transform: translate3d(14px, 0, 0); } }
.s-titel { font-size: clamp(24px, 6.6vw, 32px); outline: none; margin-bottom: 14px; }
.s-sub { margin: -6px 0 14px; color: var(--grau); font-size: 16px; }
.s-hinweis { margin-top: 16px; font-size: 14px; color: var(--grau); }

.wahl { display: grid; gap: 8px; }
.wahl-2 { grid-template-columns: 1fr 1fr; }
.wahl .breit { grid-column: 1 / -1; }
.wahl label { position: relative; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl label > span { display: flex; align-items: center; min-height: 52px; padding: 8px 16px; border: 1.5px solid var(--tinte); border-radius: 4px; background: var(--blatt); font-weight: 500; font-size: 16px; line-height: 1.2; font-variant-numeric: tabular-nums; transition: background .12s, color .12s; }
.wahl-2 label > span { justify-content: center; text-align: center; padding: 8px; }
.wahl label:hover > span { background: #efe9dc; }
.wahl input:checked + span { background: var(--tinte); color: var(--blatt); }
.wahl input:focus-visible + span { outline: 3px solid var(--stempel); outline-offset: 2px; }

.felder { display: grid; gap: 14px; }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 500; font-size: 15px; }
.feld input { width: 100%; min-height: 54px; padding: 0 14px; border-radius: 4px; border: 1.5px solid var(--tinte); background: var(--blatt); font: 18px var(--mono); }
.feld input::placeholder { color: #767063; }
.feld input:focus { outline: none; box-shadow: 0 0 0 3px rgba(47,60,158,.3); }
.feld.ungueltig input { border-color: var(--rot); }
#feld-bank-andere { margin-top: 12px; }
.fehler { color: var(--rot); font-size: 14px; margin-top: 4px; }
.datenschutz { margin-top: 14px; font-size: 13.5px; color: var(--grau); }

/* Button row sits in the flow under the step, not floating (Julius, 07.10.2026). */
.aktionen { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; }
.aktionen .knopf { flex: 1; }
/* Back: quiet text button with arrow above the counter, like the Casino AT form (Julius, 09.10.2026).
   The row keeps its height on question 1 (button hidden): a restored draft must not push the counter down. */
.zurueck-zeile { min-height: 44px; margin: -6px 0 2px -4px; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--grau); font-weight: 500; font-size: 15px; cursor: pointer; }
.zurueck svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zurueck:hover { color: var(--tinte); }
html { scroll-padding-bottom: 96px; }

/* Thank you */
.weg { list-style: none; margin: 18px 0 0; padding: 0; border-top: 2px solid var(--tinte); }
.weg li { display: grid; grid-template-columns: 36px 1fr; padding: 12px 0; border-bottom: 1px dashed #bdb5a5; }
.weg li > span { font: 500 14px/1.5 var(--mono); color: var(--stempel); }
.weg .erledigt, .weg .erledigt > span { color: var(--gruen); }
.weg b { font-weight: 500; }
.versand-fehler { margin-top: 16px; padding: 14px 16px; background: #fbeae8; border-left: 3px solid var(--rot); }
/* Honeypot: off screen, not display:none (bots skip fields that are hidden that way) */
.honig { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.f-fuss { width: min(560px, 100% - 28px); margin: 28px auto 0; padding: 6px 0 24px; border-top: 1px solid var(--linie); font-size: 12.5px; color: var(--grau); }
.f-fuss .f-werbung { display: none; margin: 0; }
body[data-schritt="kontakt"] .f-fuss .f-werbung { display: block; }
.f-fuss .f-link { padding: 0; border: 0; background: none; font: inherit; color: var(--tinte); text-decoration: underline; cursor: pointer; }

@media (min-width: 760px) {
  .f-kopf { height: 64px; padding: 0 32px; }
  .marke img { width: 128px; }
  .f-buehne { margin-top: 36px; }
  .aktionen { margin: 24px 0 0; }
}
.knopf:disabled { opacity: .72; cursor: progress; }

/* Kurzcheck: house band on the first question, reassurance block before the phone number. */
.held { display: none; position: relative; }
.mit-held .held { display: block; }
.held img { width: 100%; height: 150px; object-fit: cover; object-position: 50% 45%; }
.held-text { width: min(560px, 100% - 28px); margin: 14px auto 0; }
.held-titel { font-size: clamp(24px, 6.8vw, 34px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.held-sub { margin-top: 6px; color: var(--grau); font-size: 15.5px; }
.mit-held .f-buehne { margin-top: 14px; }
.mit-held .zaehler { display: none; }
.mit-held .s-titel { font-size: 21px; margin-bottom: 12px; }
.schritt-einschaetzung .beleg { margin-bottom: 14px; }
.schritt-einschaetzung .stempel { top: 40px; }
/* Thank-you page: file number stamped in the moment the intake answers (no delay) */
.stempel-akt { position: static; display: inline-block; margin: 6px 0 26px 4px; font-size: 15px; }
.bewegung .stempel-akt { animation-delay: 0s; }
.stempel-akt small { display: block; margin-top: 5px; font: 500 14px/1.2 var(--mono); letter-spacing: 0; text-transform: none; }
@media (min-width: 760px) {
  .held img { height: 260px; }
  .held-text { margin-top: 24px; }
}

.beruhigung { list-style: none; margin: 0 0 16px; padding: 0; border-top: 2px solid var(--tinte); }
.beruhigung li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px dashed #bdb5a5; font-size: 15px; line-height: 1.4; color: var(--grau); }
.beruhigung li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border: solid var(--gruen); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.beruhigung strong { color: var(--tinte); font-weight: 500; }
.ankuendigung { margin: 0 0 16px; padding: 12px 14px; background: var(--blatt); border-left: 3px solid var(--stempel); font-size: 16px; line-height: 1.45; }
.feld-plz { max-width: 180px; }

/* Thank-you page, second step: apply for the refund, built like the G&L page */
.vollmacht { margin-top: 4px; padding-top: 18px; border-top: 2px solid var(--tinte); }
.v-titel { font-size: 21px; margin-bottom: 12px; }
.vollmacht .s-sub { margin: 0 0 16px; }
.v-reihe { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 12px; }
.v-reihe:has(.v-plz) { grid-template-columns: 128px minmax(0, 1fr); }
.v-geb { max-width: 200px; }
.v-frei { color: var(--grau); font-weight: 400; }
.v-upload input[type=file] { min-height: 0; padding: 12px; font-family: inherit; font-size: 15px; line-height: 1.3; }
.v-hilfe { font-size: 13.5px; color: var(--grau); }
.v-dateien { margin: 0; padding-left: 18px; font-size: 14px; }
.v-check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin-top: 18px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.v-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--tinte); }
.v-laden { margin-top: 10px; font-size: 14.5px; color: var(--grau); outline: none; }   /* documents loading or failed */
.v-laden:empty { display: none; }
.v-laden [role="alert"] { color: var(--rot); }
/* The two entries in the box, plain text as on the G&L page */
.v-punkte { display: block; margin: 4px 0 6px; }
.v-punkte > span { display: block; padding-left: 16px; text-indent: -16px; }
.v-punkte > span::before { content: "•"; display: inline-block; width: 16px; text-indent: 0; }

/* Trust: the person looking after the file (by bank), right above the signature; the proven figure stamps
   next to the file stamp */
.betreuer { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; margin: 22px 0 0; padding-top: 16px; border-top: 1px dashed #bdb5a5; }
.b-bild { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--blatt); box-shadow: 0 0 0 1px var(--linie), 0 2px 6px rgba(22, 24, 29, .08); display: grid; place-items: center; }
.b-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-kuerzel { font: 500 14px/1 Aeonik, sans-serif; letter-spacing: .02em; color: var(--tinte); }
.b-text { margin: 0; font-size: 14.5px; line-height: 1.45; }
.b-text b { font-weight: 500; }
.b-tel { color: var(--tinte); font-weight: 500; white-space: nowrap; text-underline-offset: 3px; }
.stempel-erfolg { position: static; display: inline-block; margin: 6px 0 26px 14px; padding: 6px 11px; color: var(--gruen); border-color: var(--gruen); font-size: 15px; rotate: 10deg; vertical-align: top; }
.bewegung .stempel-erfolg { animation-delay: .45s; }
.stempel-erfolg small { display: block; margin-top: 4px; font: 500 12.5px/1.2 Aeonik, sans-serif; letter-spacing: 0; text-transform: none; }
.v-betont { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.unterschrift { margin-top: 18px; }
.u-label { font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.u-flaeche { display: block; width: 100%; height: 150px; border: 1.5px dashed var(--tinte); border-radius: 4px; background: var(--blatt); touch-action: none; cursor: crosshair; }
.u-leiste { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.u-hinweis { font-size: 13px; color: var(--grau); }
.u-loeschen { min-height: 40px; padding: 0 4px; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--tinte); cursor: pointer; }
.v-knopf { width: 100%; margin-top: 18px; }

/* Documents under the button, one per line; each opens over the whole page */
.v-dokumente { margin-top: 26px; }
.v-dokumente h3 { margin: 18px 0 4px; font-size: 16px; font-weight: 500; scroll-margin-top: 16px; }
.v-dokumente ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.v-dokumente li { border-bottom: 1px solid var(--linie); }
.v-dokumente li button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 2px; border: 0; background: none; font: inherit; font-size: 15px; text-align: left; color: var(--stempel); cursor: pointer; }
.v-dokumente li button::after { content: "›"; font-size: 22px; line-height: 1; color: var(--grau); }

/* Document window over the whole page, text column as wide as the form */
.dokument { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--blatt); color: var(--tinte); }
.dokument[open] { display: flex; flex-direction: column; }
.dokument::backdrop { background: var(--blatt); }
body:has(.dokument[open]) { overflow: hidden; }
.d-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) max(10px, calc((100% - 700px) / 2)) 10px max(18px, calc((100% - 700px) / 2 + 18px)); border-bottom: 1px solid var(--linie); }
.d-kopf h2 { font-size: 17px; font-weight: 500; line-height: 1.25; }
/* Other languages: the legal text stays German, this line says so above it (dok.hinweis). */
.d-hinweis { margin: 0; padding: 10px max(18px, calc((100% - 700px) / 2 + 18px)); background: #efe9dc; font-size: 14px; color: var(--tinte); }
.d-zu { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--papier); color: var(--tinte); font-size: 17px; cursor: pointer; }
.d-text { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px max(18px, calc((100% - 700px) / 2 + 18px)) calc(32px + env(safe-area-inset-bottom)); font-size: 15px; line-height: 1.6; overflow-wrap: break-word; }
.d-text h4 { margin: 18px 0 6px; font-size: 15.5px; font-weight: 500; }
.d-text h4:first-child { margin-top: 0; }
.d-text p, .d-text ul { margin: 0 0 10px; }
.d-text ul { padding-left: 20px; }
.d-text strong { font-weight: 500; }
.d-feld { background: #fff4c7; padding: 0 2px; }
.d-angaben { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 4px; font-size: 14.5px; }
.d-angaben dt { color: var(--grau); }
.d-angaben dd { margin: 0; justify-self: start; }
.d-version { font-size: 13px; color: var(--grau); }
.v-erledigt { margin-top: 4px; padding-top: 14px; border-top: 2px solid var(--tinte); }
.stempel-vm { color: var(--gruen); border-color: var(--gruen); }

