/* La Flamme Bonus: Scoped PWA presentation, compatible with Elementor Canvas. */
.lfb-app, .lfb-scanner, .lfb-redeem {box-sizing:border-box; max-width:100%; min-width:0; font-size:16px; line-height:1.45; overflow-wrap:anywhere;}
.lfb-app *, .lfb-scanner *, .lfb-redeem * {box-sizing:border-box;}
.lfb-app {padding:4px 0 max(170px, calc(140px + env(safe-area-inset-bottom,0px)));}
.lfb-app h3, .lfb-scanner h3, .lfb-redeem h3 {font-size:clamp(22px,5.5vw,29px) !important; line-height:1.2 !important; margin:26px 0 14px !important; letter-spacing:normal !important;}
.lfb-app p, .lfb-scanner p, .lfb-redeem p {margin:10px 0 15px;}
.lfb-scanner, .lfb-redeem {margin:20px 0 28px;}
.lfb-app button, .lfb-scanner button, .lfb-redeem button {display:inline-flex;justify-content:center;align-items:center; min-height:44px; padding:10px 16px; font-size:16px !important; line-height:1.3; max-width:100%; white-space:normal; cursor:pointer;}
.lfb-app button[hidden], .lfb-scanner button[hidden], .lfb-redeem button[hidden], .lfb-scanner [hidden] {display:none !important;}
.lfb-app input:not([type=checkbox]):not([type=file]), .lfb-app select, .lfb-app textarea {max-width:100%; font-size:16px; min-height:42px;}
.lfb-app .lfb-redeem-amount {width:140px;}
.lfb-app .lfb-redeem-pin {width:170px;}
.lfb-scanner video {width:100% !important;max-width:400px !important;border-radius:10px;margin-top:12px;}
.lfb-scanner .lfb-upload {max-width:100%;width:100%;font-size:14px;}
.lfb-app .lfb-scan-result:not(:empty),.lfb-app .lfb-redeem-result:not(:empty) {padding:12px 14px;border:1px solid currentColor;border-radius:8px;margin:12px 0 16px;font-size:15px;line-height:1.5;}
.lfb-app [data-state=error] {color:#a52525;background:#fff0f0;}
.lfb-app [data-state=success] {color:#17683c;background:#effaf3;}
.lfb-app [data-state=info] {color:inherit;background:rgba(150,150,150,.12);}
.lfb-app .lfb-history {max-width:100%;overflow-x:auto;}
.lfb-app .lfb-history table {width:100%;font-size:14px;}
.lfb-app .lfb-history td {padding:8px 5px;}
.lfb-app details {margin:16px 0;}
.lfb-app .lfb-debug textarea {width:100%;}
@media(max-width:480px){.lfb-app {padding-left:0;padding-right:0;} .lfb-scanner .lfb-start-camera,.lfb-scanner .lfb-stop-camera {width:100%;} .lfb-redeem .lfb-redeem-submit {width:100%;} .lfb-app .lfb-history table {font-size:13px;}}

/* v0.3.2: Adaptive Buchungshistorie und mobile Einlösefelder. */
.lfb-app .lfb-history-table table {table-layout:auto;width:100%;}
.lfb-app .lfb-history-table td:first-child,
.lfb-app .lfb-history-table td:last-child {white-space:nowrap;}
.lfb-app .lfb-history-table td:last-child {text-align:right;}
.lfb-app .lfb-history-cards {display:none;}
.lfb-app .lfb-redeem label {display:block;max-width:100%;}
.lfb-app .lfb-redeem label input,
.lfb-app .lfb-redeem label select {display:block;margin:8px 0 0;}
.lfb-app .lfb-redeem .lfb-redeem-amount,
.lfb-app .lfb-redeem .lfb-redeem-pin {width:min(100%, 300px);}
.lfb-app .lfb-redeem .lfb-redeem-location {width:100%;}
@media(max-width:600px) {
  .lfb-app .lfb-history-table {display:none;}
  .lfb-app .lfb-history-cards {display:block;}
  .lfb-app .lfb-history-card {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid rgba(150,150,150,.35);}
  .lfb-app .lfb-history-card:last-child {border-bottom:0;}
  .lfb-app .lfb-history-card-main {min-width:0;flex:1;}
  .lfb-app .lfb-history-card-description {font-size:15px;font-weight:600;line-height:1.45;overflow-wrap:break-word;word-break:normal;}
  .lfb-app .lfb-history-card-date {font-size:13px;opacity:.75;white-space:nowrap;margin-top:5px;}
  .lfb-app .lfb-history-card-points {flex:none;text-align:right;min-width:70px;white-space:nowrap;line-height:1.2;}
  .lfb-app .lfb-history-card-points strong {display:block;font-size:20px;}
  .lfb-app .lfb-history-card-points span {display:block;font-size:11px;opacity:.8;margin-top:3px;}
  .lfb-app .lfb-redeem .lfb-redeem-amount,
  .lfb-app .lfb-redeem .lfb-redeem-pin {width:100%;}
}

.lfb-camera-reader { width:100%; max-width:440px; margin:12px auto; overflow:hidden; }
.lfb-camera-reader video, .lfb-camera-reader canvas { max-width:100%; }
.lfb-scanner [hidden] { display:none !important; }

/* v0.3.8: Anmeldung zuerst, Registrierung nur auf Wunsch. */
.lfb-app .lfb-register-panel {margin:22px 0 12px;border:1px solid rgba(128,128,128,.35);border-radius:10px;overflow:hidden;}
.lfb-app .lfb-register-panel > summary {display:block;position:relative;cursor:pointer;padding:14px 42px 14px 16px;font-weight:600;line-height:1.5;list-style:none;}
.lfb-app .lfb-register-panel > summary::-webkit-details-marker {display:none;}
.lfb-app .lfb-register-panel > summary::after {content:'+';position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:24px;font-weight:400;}
.lfb-app .lfb-register-panel[open] > summary::after {content:'−';}
.lfb-app .lfb-register-panel-inner {padding:0 16px 16px;}
.lfb-app .lfb-register-panel-inner h3 {margin-top:12px !important;}

/* v0.3.9: Registrierung direkt neben dem Passwort-Link, zugängliche mobile Ansicht. */
.lfb-app .lfb-login-links {display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin:12px 0 14px;}
.lfb-app .lfb-login-links a,.lfb-app .lfb-login-links .lfb-register-toggle {font:inherit;font-size:inherit !important;line-height:1.5;text-decoration:underline;white-space:nowrap;}
.lfb-app .lfb-login-links .lfb-register-toggle {min-height:0;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;}
.lfb-app .lfb-register-panel {margin:12px 0 18px;border:1px solid rgba(128,128,128,.35);border-radius:10px;overflow:visible;scroll-margin-top:20px;}
.lfb-app .lfb-register-panel[hidden] {display:none !important;}
.lfb-app .lfb-register-panel-inner {padding:16px;}
@media(max-width:480px) {.lfb-app .lfb-login-links {gap:8px 14px;} .lfb-app .lfb-register-panel-inner {padding:12px;}}

/* 0.3.10: Beide Login-Links unabhängig von Elementor-/Theme-Linkfarben weiß. */
.lfb-app .lfb-login-links a,
.lfb-app .lfb-login-links a:link,
.lfb-app .lfb-login-links a:visited,
.lfb-app .lfb-login-links a:hover,
.lfb-app .lfb-login-links a:focus,
.lfb-app .lfb-login-links .lfb-register-toggle,
.lfb-app .lfb-login-links .lfb-register-toggle:hover,
.lfb-app .lfb-login-links .lfb-register-toggle:focus { color: #fff !important; }
