/* Aktionsseiten: auf dem Handy wie eine App, am großen Schirm wie ein Telefon in der Mitte. */
:root {
    --rot: #B5121B; --rot-tief: #8E0D14; --tinte: #16202C; --text: #46525F; --leise: #6B7785;
    --linie: #DDE3EA; --flaeche: #F4F6F9; --gruen: #15803D;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100dvh; background: var(--flaeche); color: var(--text);
    font: 400 16px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.app { display: flex; flex-direction: column; min-height: 100dvh; max-width: 480px; margin: 0 auto; background: linear-gradient(170deg, var(--rot) 0, var(--rot-tief) 340px, var(--rot-tief) 100%); }
.app-kopf { display: flex; align-items: center; justify-content: space-between; padding: max(16px, env(safe-area-inset-top)) 20px 8px; }
.app-logo { color: #fff; font: 800 26px/1 Archivo, Inter, sans-serif; letter-spacing: -.01em; text-decoration: none; }
.app-pille { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 600; }

.app-held { padding: 14px 24px 26px; color: #fff; }
.app-held h1 { margin: 2px 0 8px; font: 800 27px/1.12 Archivo, Inter, sans-serif; letter-spacing: -.02em; }
.app-held p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 15.5px; overflow-wrap: anywhere; }
.app-held .app-zahl { font: 800 64px/1 Archivo, Inter, sans-serif; letter-spacing: -.03em; color: #fff; }

.app-blatt { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 26px 20px 20px; background: #fff; border-radius: 26px 26px 0 0; }
.app-honig { position: absolute; left: -9999px; }
.app-hinweis { margin: 0; padding: 12px 14px; background: #FFF7E0; border-radius: 12px; font-size: 14.5px; color: #6B4E00; }

.app-feld { display: grid; gap: 6px; }
.app-feld > span { font-size: 14px; font-weight: 600; color: var(--tinte); }
.app-feld input { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--linie); border-radius: 14px; background: #fff; color: var(--tinte); font: 400 16px Inter, system-ui, sans-serif; outline: 0; }
.app-feld input:focus { border-color: var(--rot); box-shadow: 0 0 0 3px rgba(181, 18, 27, .13); }
.app-feld.falsch input { border-color: var(--rot); }
.app-feld small, .app-fehler { color: var(--rot); font-size: 13.5px; font-weight: 500; }
.app-fehler { margin-top: -8px; }

.app-haken { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.4; }
.app-haken input { width: 24px; height: 24px; margin: 0; accent-color: var(--rot); }
.app-haken a { color: var(--rot); font-weight: 600; }

.app-leiste { position: sticky; bottom: 0; display: grid; gap: 10px; margin: auto -20px -20px; padding: 14px 20px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 18%); }
.app-leiste p { margin: 0; text-align: center; font-size: 13px; color: var(--leise); }
.app-knopf { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border: 0; border-radius: 16px; background: var(--rot); color: #fff; font: 700 17px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(142, 13, 20, .7); }
.app-knopf:disabled { opacity: .6; }
.app-knopf.zweit { background: var(--flaeche); color: var(--tinte); box-shadow: none; }

.app-gutschein { position: relative; display: grid; gap: 10px; justify-items: center; padding: 22px 16px; text-align: center; border: 2px dashed var(--rot); border-radius: 18px; background: #FFF6F6; }
.app-gutschein small { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.app-gutschein strong { font: 800 clamp(24px, 7.4vw, 32px)/1.1 Archivo, Inter, sans-serif; color: var(--tinte); letter-spacing: .02em; user-select: all; }
.app-kopieren { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--tinte); color: #fff; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; }
.app-liste { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }

.app-text h1 { margin: 0; font: 800 26px/1.15 Archivo, Inter, sans-serif; color: var(--tinte); }
.app-text p { margin: 0; }
.app-text ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; }
.app-text b { color: var(--tinte); }
.app-text a:not(.app-knopf) { color: var(--rot); }

.app-fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); background: #fff; font-size: 13px; }
.app-fuss a { color: var(--leise); }

@media (min-width: 560px) {
    body { padding: 32px 0; background: linear-gradient(160deg, #F4F6F9, #E9EDF2); }
    .app { min-height: min(860px, calc(100dvh - 64px)); border-radius: 34px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(22, 32, 44, .45), 0 0 0 1px rgba(22, 32, 44, .06); }
}

.app-merken { margin: 0; text-align: center; font-weight: 700; font-size: 16px; color: var(--tinte); }

/* Der Gutschein als PDF oder auf Papier: schlicht, ohne Knöpfe, ohne Farbflächen */
@media print {
    @page { size: A5 portrait; margin: 14mm; }
    html, body { background: #fff !important; padding: 0 !important; }
    .app { display: block; min-height: 0; max-width: none; background: none; border-radius: 0; box-shadow: none; overflow: visible; }
    .app-kopf { padding: 0 0 8mm; }
    .app-logo { color: var(--tinte); }
    .app-pille, .app-kopieren, .app-leiste { display: none !important; }
    .app-held { padding: 0 0 8mm; color: var(--tinte); }
    .app-held .app-zahl { font-size: 26pt; color: var(--rot); }
    .app-held h1 { font-size: 18pt; }
    .app-held p { color: var(--text); }
    .app-blatt { display: block; padding: 0; border-radius: 0; }
    .app-gutschein { padding: 8mm 4mm; background: #fff; break-inside: avoid; }
    .app-merken { margin: 7mm 0 5mm; }
}
