/* Öffentlicher Mitgliedsantrag, eine zentrierte Karte, Kopf im Farbverlauf der Vereinsfarbe */
body.public {
  --pub-radius: 22px;
  --field-bg: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--canvas);
  min-height: 100vh;
}
.pub-shell { padding: 28px 16px 40px; }
.pub-container {
  max-width: 940px; margin: 0 auto;
  background: var(--surface);
  border-radius: var(--pub-radius);
  box-shadow: 0 18px 50px rgb(20 30 50 / 14%), 0 2px 8px rgb(20 30 50 / 6%);
  overflow: hidden;
  animation: pubIn .45s ease-out both;
}
@keyframes pubIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Kopf */
.pub-head {
  background: var(--grad);
  color: var(--on-grad);
  text-align: center;
  padding: 40px 28px 34px;
  position: relative;
}
.pub-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 200px at 50% 0%, rgb(255 255 255 / 16%), transparent 70%);
}
.pub-logo-ring {
  width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 5px rgb(255 255 255 / 28%), 0 10px 26px rgb(0 0 0 / 22%);
  position: relative; z-index: 1;
}
.pub-logo-ring img { width: 82%; height: 82%; object-fit: contain; }
/* Logo füllt den Kreis ganz aus (Einstellung „Logo im Antrag“) */
body.logo-fill .pub-logo-ring:not(:has(> span)) { background: transparent; }
body.logo-fill .pub-logo-ring img { width: 100%; height: 100%; object-fit: cover; }
.pub-logo-ring span { font-size: 2.6rem; font-weight: 800; color: var(--primary-deep, var(--primary)); }
.pub-title { font-size: clamp(1.8rem, 5vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .25rem; position: relative; z-index: 1; }
.pub-club { margin: 0; opacity: .9; font-weight: 500; position: relative; z-index: 1; }

.pub-main { padding: 8px 52px 10px; }
@media (min-width: 900px) { .pub-logo-ring { width: 128px; height: 128px; } }
.fee-line { display: inline-block; margin: 0 0 1rem; padding: .55rem .95rem; border-radius: 12px; font-weight: 700; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); color: var(--ink); }
@media (max-width: 600px) { .pub-main { padding: 4px 18px 8px; } .pub-head { padding: 30px 18px 26px; } .pub-logo-ring { width: 92px; height: 92px; } }

/* Abschnitte */
.pub-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.pub-card:last-of-type { border-bottom: 0; }
.pub-intro {
  margin-top: 26px; padding: 18px 20px !important; border: 0 !important;
  border-radius: 14px; border-left: 4px solid var(--primary) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), color-mix(in srgb, var(--primary) 4%, var(--surface)));
}
.pub-intro p:last-child { margin-bottom: 0; }
.pub-step { display: flex; align-items: center; gap: .7rem; font-size: 1.22rem; margin-bottom: 1.2rem; }
.pub-step span {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none;
  background: var(--grad);
  color: var(--on-grad); display: grid; place-items: center; font-size: 1rem;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 35%, transparent);
}

/* Felder weich und rund */
body.public input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.public select, body.public textarea {
  border-radius: 12px; min-height: 3rem; background-color: var(--field-bg);
  border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
body.public input:focus, body.public select:focus, body.public textarea:focus {
  background-color: var(--surface); border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
body.public .field > label, body.public .label { font-size: .92rem; }

/* Häkchen in hellen Kästen (wie im alten Antrag) */
body.public .check-list { gap: .6rem; }
body.public .check-list > .check, body.public .check-list .field > .check, body.public .mandate .check {
  background: var(--field-bg); border-radius: 12px; padding: .85rem 1rem; border: 1.5px solid transparent;
}
body.public .check-list > .check:has(input:checked), body.public .check-list .field > .check:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}
body.public .check-list .field { gap: 0; }

/* Mitgliedsart-Karten */
.pub-form .radio-card { border-radius: 16px; border: 2px solid var(--line); padding: 1rem 1rem 1rem 2.8rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pub-form .radio-card:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(20 30 50 / 8%); }
.pub-form .radio-card:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 18%, transparent); }

/* Bestellungen: erst ankreuzen, dann Größe */
.order-grid { display: flex; flex-direction: column; gap: .8rem; }
.order-grid > .field { gap: .4rem; }
.order-box { border-radius: 16px; background: var(--field-bg); padding: .4rem; }
.order-toggle {
  display: inline-flex !important; align-items: center; gap: .6rem;
  padding: .6rem 1.1rem .6rem .8rem; border-radius: 999px; background: var(--surface);
  border: 2px solid var(--line); cursor: pointer; font-weight: 600;
}
.order-toggle:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.order-toggle input { margin: 0 !important; }
.price-tag { display: inline-block; margin-left: .3rem; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); font-size: .82rem; font-weight: 700; }
.order-size { padding: .8rem .6rem .5rem; display: flex; flex-direction: column; gap: .3rem; max-width: 340px; animation: pubIn .2s ease-out; }
.order-grid .hint { padding: 0 .6rem .4rem; }

.minor-box { margin-top: 1.2rem; padding: 1rem 1.15rem; border-radius: 14px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.minor-box p { color: var(--warn); }
.mandate { margin-top: 1.4rem; padding: 1.1rem 1.2rem; background: var(--field-bg); border-radius: 14px; }
.mandate h3 { margin-bottom: .4rem; }
.mandate p { font-size: .88rem; color: var(--ink-2); }

/* Unterschrift */
.sig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.sig-pad { position: relative; height: 180px; border: 2px dashed var(--line-strong); border-radius: 16px; background: #fff; touch-action: none; cursor: crosshair; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.sig-pad .sig-line { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.6rem; border-top: 1px solid #c9d0d8; padding-top: .3rem; font-size: .78rem; color: #8a94a3; pointer-events: none; }
.sig-pad.has-ink { border-style: solid; border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.sig-pad.has-ink .sig-line { color: transparent; }
.field.has-error .sig-pad { border-color: var(--bad); }

/* Absenden */
.pub-submit { margin-top: 1.8rem; display: flex; flex-direction: column; gap: .7rem; }
.pub-submit .btn {
  width: 100%; padding: 1rem; font-size: 1.08rem; border-radius: 14px; border: 0;
  background: var(--grad); color: var(--on-grad);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 35%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.pub-submit .btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 42%, transparent); }
.pow-state { margin: 0; text-align: center; order: 2; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.recaptcha-wrap { margin-top: 1.2rem; display: flex; justify-content: center; }
.recaptcha-ph { padding: .9rem 1rem; border-radius: 14px; background: var(--field-bg); text-align: center; }
.recaptcha-ph p { font-size: .9rem; margin-bottom: .6rem; }

.pub-foot { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; justify-content: center; font-size: .86rem; padding: 18px 20px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
.pub-foot a, .pub-foot .linklike { color: var(--ink-2); }
.pub-thanks { text-align: center; padding: 2.4rem 0 1.6rem !important; border: 0 !important; }
.thanks-mark { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, #3fb97a, #23905a); color: #fff; display: grid; place-items: center; margin: 0 auto 1.1rem; box-shadow: 0 10px 24px rgb(35 144 90 / 35%); }
.thanks-mark .icon { width: 38px; height: 38px; stroke-width: 2.6; }
body.public .alert { border-radius: 12px; margin-top: 1rem; }

/* Tablet-Modus */
body.kiosk { font-size: 17px; }
body.kiosk .pub-container { max-width: 860px; }
body.kiosk input:not([type="checkbox"]):not([type="radio"]), body.kiosk select { min-height: 3.3rem; font-size: 1.08rem; }
body.kiosk .check input { width: 1.5rem; height: 1.5rem; }
body.kiosk .sig-pad { height: 230px; }
.kiosk-reset-row { text-align: right; margin: 0 0 1rem; }
.kiosk-splash {
  position: fixed; inset: 0; z-index: 100; color: var(--on-grad); display: grid; place-items: center; text-align: center; padding: 2rem;
  background: var(--grad);
}
.kiosk-splash .pub-logo-ring.big { width: 150px; height: 150px; margin-bottom: 26px; }
.kiosk-splash h2 { font-size: clamp(2.6rem, 8vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 .3rem; }
.kiosk-splash .pub-club { margin-bottom: 2.2rem; font-size: 1.15rem; }
.kiosk-start { background: #fff; color: var(--primary-deep, var(--primary)); border: 0; font-size: 1.25rem; padding: 1.1rem 2.2rem; border-radius: 999px; box-shadow: 0 12px 30px rgb(0 0 0 / 25%); }
.kiosk-start:hover { background: #fff; transform: translateY(-1px); }
.kiosk-idle { position: fixed; inset: 0; z-index: 2100; background: rgb(10 15 25 / 55%); display: grid; place-items: center; padding: 1rem; }
.kiosk-idle-box { background: var(--surface); border-radius: 22px; padding: 1.8rem; max-width: 460px; box-shadow: var(--shadow-pop); }

/* Klaro an das Vereinsdesign anpassen */
.klaro { --green1: var(--primary); --green2: var(--primary); --green3: var(--primary); --blue1: var(--primary); --button-text-color: var(--on-primary); font-family: var(--font) !important; }
.klaro .cookie-notice:not(.cookie-modal-notice), .klaro .cookie-modal .cm-modal.cm-klaro { border-radius: 18px !important; }
.klaro .cm-btn { border-radius: 10px !important; font-family: var(--font) !important; }
.klaro .cookie-notice:not(.cookie-modal-notice) .cn-learn-more,
.klaro .cookie-notice:not(.cookie-modal-notice) a { color: #f1f3f6 !important; text-decoration: underline; }

/* Mitgliederportal */
.portal-login { text-align: left; }
.portal-login .thanks-mark { margin: 0 auto 1rem; }
.portal-login h2:not(.pub-step) { text-align: center; }
.portal-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.portal-top h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.portal-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.portal-card {
  margin-top: 1.1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem 1.2rem;
  padding: 18px 20px; border-radius: 16px; color: var(--on-grad, #fff);
  background: var(--grad, linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #000)));
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--primary) 70%, transparent);
}
.portal-card > div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.portal-card .muted { color: color-mix(in srgb, var(--on-grad, #fff) 75%, transparent) !important; }
.portal-card strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.portal-sec-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.portal-sec-head .pub-step { margin: 0; }
.portal-dl { display: grid; grid-template-columns: minmax(130px, 36%) 1fr; gap: .55rem 1rem; margin: 0 0 1rem; }
.portal-dl dt { color: var(--ink-2); }
.portal-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .portal-dl { grid-template-columns: 1fr; gap: .1rem; } .portal-dl dd { margin-bottom: .55rem; } }
.portal-hello-main { display: flex; gap: 1rem; align-items: center; min-width: 0; flex: 1 1 18rem; }
.portal-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); border: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.portal-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-avatar-empty { color: var(--primary); border-style: dashed; }
.portal-avatar-empty .icon { width: 30px; height: 30px; }
.portal-photo-ask { border: 2px solid color-mix(in srgb, var(--primary) 45%, transparent) !important; background: color-mix(in srgb, var(--primary) 6%, var(--surface)); border-radius: 16px; padding: 1.2rem 1.3rem !important; margin: 1rem 0; }
.portal-photo-ask h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.portal-photo-ask p { margin: 0 0 .8rem; }
.portal-photo-ask .small { margin: .6rem 0 0; }
.portal-photo-row { display: flex; gap: 1.1rem; align-items: flex-start; }
.portal-photo-row > div { flex: 1; min-width: 0; }
.portal-photo-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.portal-photo-form input[type=file] { flex: 1 1 14rem; min-width: 0; }
.portal-photo-change { border-top: 1px solid var(--line); padding-top: .9rem; display: grid; gap: .45rem; }
@media (max-width: 520px) { .portal-photo-row { flex-direction: column; align-items: center; text-align: center; } .portal-photo-form { justify-content: center; } .portal-hello-main .portal-avatar { width: 56px; height: 56px; } }
.portal-requests { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.portal-requests li { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.portal-requests li > span:first-child { flex: 1; min-width: 12rem; }
.portal-choose { display: grid; gap: .6rem; }
.portal-person { width: 100%; display: flex; align-items: center; gap: .9rem; text-align: left; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.portal-person:hover { border-color: var(--primary); box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--primary) 60%, transparent); }
.portal-person .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--on-grad, #fff); background: var(--grad, linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #000))); flex: none; }
.consent-row { align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.portal-table td, .portal-table th { font-size: .92rem; }
.pub-submit .btn-danger, .pub-submit .btn-danger:hover { background: linear-gradient(135deg, #c8372d, #962620); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -12px var(--bad); }

/* Cookie-Hinweis groß in der Mitte, man muss sich entscheiden */
.klaro .cookie-notice.cookie-modal-notice, .klaro .cookie-modal-notice { max-width: 560px !important; padding: 1.6rem 1.8rem 1.4rem !important; border-radius: 20px !important; font-size: 1.02rem !important; line-height: 1.55 !important; box-shadow: 0 30px 80px rgb(0 0 0 / 35%) !important; }
.klaro .cookie-modal-notice .cn-body p { font-size: 1.02rem !important; }
.klaro .cookie-modal-notice .cn-ok { gap: .6rem; flex-wrap: wrap; }
.klaro .cookie-modal-notice .cm-btn { padding: .7rem 1.2rem !important; font-size: 1rem !important; }
.klaro .cookie-modal .cm-bg { background: rgb(10 18 30 / 55%) !important; backdrop-filter: blur(2px); }
.klaro .cookie-modal-notice h2, .klaro .cookie-modal-notice .cn-title { font-size: 1.3rem !important; }

/* Cookie-Fenster: Pflicht/freiwillig deutlich kennzeichnen */
.klaro .mv-cbadge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: .08rem .45rem; border-radius: 99px; margin-right: .25rem; vertical-align: 1px; }
.klaro .mv-req { background: rgb(255 255 255 / 16%); color: #fff; }
.klaro .mv-opt { background: #f2c14e; color: #2a2205; }
.klaro .mv-cmeta { display: block; margin-top: .35rem; font-size: .86em; opacity: .85; line-height: 1.5; }
.klaro .mv-receipt { display: block; margin-top: .5rem; font-size: .8em; opacity: .7; font-family: ui-monospace, monospace; }
.klaro .cookie-modal .cm-modal.cm-klaro { max-width: 720px !important; }
.klaro .cookie-modal .cm-list-description, .klaro .cookie-modal .cm-list-title { line-height: 1.5; }

/* Mitgliederportal: Hilfe unter der Anmeldung */
.portal-help { margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 12px; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.portal-help p { margin: 0 0 .7rem; font-size: .92rem; }

/* Tablet-App: Freischalten */
.kiosk-pair-link { margin-top: 2.4rem; font-size: .95rem; }
.kiosk-pair-link a { color: inherit; opacity: .65; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.kiosk-pair-link.ok { opacity: .8; display: inline-flex; gap: .4rem; align-items: center; }
.kiosk-pair-link .icon, .kiosk-pair-link svg { width: 1.1em; height: 1.1em; }
.pair-form label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
.pair-form input { font: 700 1.8rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .2em; text-align: center; max-width: 14rem; }
.pair-form .btn-row { margin-top: 1.2rem; display: flex; gap: .6rem; flex-wrap: wrap; }
/* Als App gestartet: Rand für Statusleiste und Home-Balken */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body.public { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
}

/* reCAPTCHA v3: Hinweis steht am Absende-Knopf, Googles Kasten unten rechts darf dann weg */
.rc3-on .grecaptcha-badge { visibility: hidden; }
.captcha-note { text-align: center; margin: .7rem 0 0; }
.captcha-note a { color: inherit; }
.portal-change-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; text-align: left; }
.portal-change-list li { display: grid; gap: .15rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.portal-change-list li > span:last-child { overflow-wrap: anywhere; }
.portal-arrow { transform: rotate(180deg); width: 14px; height: 14px; vertical-align: -2px; color: var(--ink-2); }

/* Portal: Straße und Hausnummer nebeneinander */
.street-split { display: grid; grid-template-columns: 1fr 7rem; gap: .5rem; }

/* Digitaler Mitgliedsausweis */
.card-body { display: block; }
.card-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.mcard-wrap { width: 100%; max-width: 440px; }
.mcard { position: relative; overflow: hidden; border-radius: 20px; background: var(--grad); color: var(--on-grad); box-shadow: 0 18px 50px rgb(20 30 50 / 25%); min-height: 15rem; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; container-type: inline-size; }
.mcard::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 10%); animation: mcardGlow 6s ease-in-out infinite; }
@keyframes mcardGlow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-18%, 14%); } }
.mcard-invalid { filter: grayscale(.9); }
.mcard-head { display: flex; gap: 10px; align-items: center; position: relative; }
.mcard-head strong { display: block; font-size: clamp(.8rem, 4.2cqi, 1rem); line-height: 1.15; }
.mcard-head small { opacity: .85; font-size: clamp(.65rem, 3cqi, .78rem); letter-spacing: .04em; text-transform: uppercase; }
.mcard-logo { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--primary); font-weight: 800; flex: none; }
.mcard-logo img { width: 100%; height: 100%; object-fit: contain; }
.mcard-body { display: flex; gap: 12px; align-items: center; flex: 1; position: relative; }
.mcard-photo { width: 26cqi; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgb(255 255 255 / 20%); flex: none; display: grid; place-items: center; border: 2px solid rgb(255 255 255 / 60%); }
.mcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.mcard-photo span { font-size: 8cqi; font-weight: 800; }
.mcard-data h1 { margin: 0 0 4px; font-size: clamp(1rem, 6cqi, 1.45rem); line-height: 1.1; color: inherit; }
.mcard-data dl { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; margin: 0; font-size: clamp(.7rem, 3.4cqi, .88rem); }
.mcard-data dt { opacity: .75; }
.mcard-data dd { margin: 0; font-weight: 600; }
.mcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; position: relative; font-size: clamp(.68rem, 3.2cqi, .85rem); }
.mcard-state small { opacity: .85; }
.mcard-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; margin-right: 6px; box-shadow: 0 0 0 0 rgb(61 220 132 / 70%); animation: mcardPulse 1.6s infinite; vertical-align: 0; }
.mcard-invalid .mcard-dot { background: #ff5a4f; box-shadow: none; animation: none; }
@keyframes mcardPulse { 70% { box-shadow: 0 0 0 9px rgb(61 220 132 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0%); } }
.mcard-qr { background: #fff; border-radius: 10px; padding: 3px; width: 23cqi; flex: none; }
.mcard-qr img { display: block; width: 100%; }
.mcard-hint { color: var(--ink-2); font-size: .88rem; text-align: center; margin: 1rem 0 .6rem; }
.mcard-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.mcard-howto { margin-top: 1rem; font-size: .88rem; color: var(--ink-2); background: var(--surface); border-radius: 14px; padding: .7rem 1rem; }
.mcard-howto summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.verify-box { background: var(--surface); border-radius: 22px; padding: 28px 22px; text-align: center; box-shadow: 0 18px 50px rgb(20 30 50 / 14%); border-top: 10px solid #26734a; }
.verify-bad { border-top-color: #b02a21; }
.verify-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: #26734a; color: #fff; }
.verify-bad .verify-icon { background: #b02a21; }
.verify-icon .icon { width: 34px; height: 34px; }
.verify-box h1 { font-size: 1.35rem; margin: 0 0 .2rem; }
.verify-club { color: var(--ink-2); margin: 0 0 1rem; }
.verify-person { display: flex; gap: 14px; align-items: center; justify-content: center; text-align: left; margin: 0 0 1rem; }
.verify-person img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; }
.verify-time { font-size: .85rem; color: var(--ink-3); margin: 0; }
.verify-checkin { margin: 0 0 1rem; }
.verify-checkin .btn { width: 100%; justify-content: center; }
.mcard-offline { background: #7a4a00; color: #fff; border-radius: 12px; padding: .6rem .9rem; font-size: .9rem; margin: 0 0 .8rem; }
.mcard-ios { text-align: center; font-size: .9rem; background: var(--surface); border-radius: 12px; padding: .6rem .9rem; margin: .8rem 0 0; }

/* Tablet-Modus: Links über dem Antrag statt in einem neuen Fenster */
.kiosk-doc { position: fixed; inset: 0; z-index: 2000; background: rgb(10 15 25 / 60%); display: grid; place-items: center; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); }
.kiosk-doc-box { background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-pop); width: min(960px, 100%); height: min(88vh, 100%); height: min(88dvh, 100%); display: flex; flex-direction: column; overflow: hidden; }
.kiosk-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem .7rem 1.2rem; border-bottom: 1px solid var(--line); }
.kiosk-doc-head strong { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kiosk-doc-head .btn { min-height: 48px; padding-inline: 1.3rem; }
.kiosk-doc-body { flex: 1; min-height: 0; display: flex; background: var(--surface); -webkit-overflow-scrolling: touch; overflow: auto; }
.kiosk-doc-body.has-frame { background: #fff; }
.kiosk-doc-body iframe { flex: 1; width: 100%; height: 100%; border: 0; background: #fff; }
.kiosk-doc-wait { margin: auto; color: var(--ink-2, var(--ink)); }
.kiosk-doc-qr { margin: auto; text-align: center; padding: 1.5rem; color: var(--ink); max-width: 34rem; }
.kiosk-doc-qr-img { margin: 1rem auto; width: 240px; padding: 10px; background: #fff; border-radius: 12px; line-height: 0; }
.kiosk-doc-qr-img svg { width: 220px; height: 220px; }
.kiosk-doc-url { font-size: .85rem; color: var(--ink-2, var(--ink)); word-break: break-all; }
.kiosk-doc-foot { display: flex; align-items: center; gap: .9rem; padding: .5rem 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2, var(--ink)); }
.kiosk-doc-foot[hidden] { display: none; }
.kiosk-doc-qr-small { flex: none; line-height: 0; background: #fff; border-radius: 6px; padding: 3px; }
.kiosk-doc-qr-small svg { width: 72px; height: 72px; }
