/* HERK V2.5 — design-only update. No booking, payment or authentication logic. */

/* Quiet voucher announcement directly below the main navigation. */
.gift-home-banner {
  width:min(1120px,calc(100% - 36px)); max-width:1120px;
  min-height:46px; margin:12px auto 0; padding:9px 15px;
  display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:18px;
  color:#334e3d; background:#f7f9f6; border:1px solid #e2e9df;
  border-radius:12px; box-shadow:none;
}
.gift-home-banner>div { display:flex; flex-direction:row; align-items:center; flex-wrap:wrap; gap:8px 11px; min-width:0; }
.gift-home-banner .gift-home-eyebrow {
  display:inline-flex; align-items:center; padding:4px 8px; border-radius:7px;
  font-size:.67rem; line-height:1.1; letter-spacing:0; text-transform:none;
  font-weight:750; background:#e7efe6; color:#456b51;
}
.gift-home-banner strong { font-size:.88rem; font-weight:750; line-height:1.3; color:#203d2d; }
.gift-home-banner>div>span:last-child { font-size:.78rem; line-height:1.4; color:#62746a; }
.gift-home-banner a {
  background:none; border:0; padding:5px 0; border-radius:0; box-shadow:none;
  font-size:.79rem; line-height:1.3; font-weight:750; color:#2c6945;
  text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px;
  white-space:nowrap;
}
.gift-home-banner a:hover { color:#17462c; background:transparent; }
@media(max-width:720px) {
  .gift-home-banner { width:calc(100% - 24px); margin:9px 12px 0; padding:9px 11px;
    flex-direction:row; align-items:center; justify-content:space-between; gap:8px; border-radius:11px; }
  .gift-home-banner>div { gap:7px; }
  .gift-home-banner .gift-home-eyebrow { font-size:.62rem; padding:4px 6px; }
  .gift-home-banner strong { font-size:.77rem; }
  .gift-home-banner>div>span:last-child { display:none; }
  .gift-home-banner a { font-size:.72rem; text-align:right; }
}
@media(max-width:375px) {
  .gift-home-banner .gift-home-eyebrow { display:none; }
  .gift-home-banner strong { font-size:.75rem; }
  .gift-home-banner a { font-size:.71rem; }
}

/* Main PWA administrator — readable touch interface without modifying the login. */
.admin-body .herk-mobile-header-actions { display:flex; align-items:center; gap:8px; }
.admin-body .herk-voucher-quick-link { display:inline-flex; align-items:center; justify-content:center;
  min-height:39px; padding:8px 12px; color:#f1f8f0; text-decoration:none; font-size:12px; font-weight:750;
  border:1px solid rgba(255,255,255,.22); border-radius:11px; background:rgba(255,255,255,.09); }
.admin-body .herk-voucher-quick-link:focus-visible { outline:3px solid #f5b64e; outline-offset:2px; }
.admin-body button:not(:disabled),.voucher-admin-v25 button:not(:disabled){-webkit-tap-highlight-color:transparent}
@media(max-width:820px) {
  .admin-body .admin-mobile-header { gap:12px; }
  .admin-body .admin-mobile-header>img { max-width:96px; height:auto; max-height:44px; object-fit:contain; }
  .admin-body .herk-mobile-header-actions { margin-left:auto; }
  .admin-body .admin-mobile-header button { flex:0 0 44px; min-height:44px; }
  .admin-body .admin-mode-banner { position:relative; top:auto; margin-bottom:15px; }
  .admin-body .admin-mode-banner .admin-sync-status { line-height:1.4; }
  .admin-body .admin-main { padding-bottom:max(34px,env(safe-area-inset-bottom)); }
  .admin-body .admin-top h1 { line-height:1.15; letter-spacing:-.03em; }
  .admin-body .admin-top-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .admin-body .admin-top-actions .btn { min-height:46px; width:100%; margin:0; padding:10px 8px; line-height:1.25; font-size:12px; }
  .admin-body .admin-top-actions .btn:last-child { grid-column:1/-1; }
  .admin-body .admin-section-head h2 { line-height:1.16; }
  .admin-body .admin-table tr { box-shadow:0 4px 14px rgba(19,41,29,.045); }
  .admin-body #bookingRows td:first-child { display:block!important; padding:2px 0 10px!important; border-bottom:1px solid #e8eeea!important; }
  .admin-body #bookingRows td:first-child:before { display:none; }
  .admin-body #bookingRows td:first-child strong { display:block; font-size:13px; overflow-wrap:anywhere; }
  .admin-body #bookingRows td[data-label="Kunde"] { font-size:13px!important; line-height:1.45; }
  .admin-body #bookingRows td[data-label="Zahlung"] { background:#f2f8f3; border-radius:10px; padding:10px!important; margin:5px 0; }
  .admin-body #bookingRows td[data-label="Aktion"] button { min-height:44px; width:100%; font-size:12px; }
  .admin-body #blockRows td[data-label="Aktionen"] button { min-height:42px; }
  .admin-body #blockRows td[data-label="Aktionen"] .table-action { flex:1 1 120px; }
  .admin-body #blockRows td[data-label="Aktionen"]::before { flex-basis:100%; }
  .admin-body .admin-v23-payment-panel { padding:14px; border-radius:16px; margin:18px 0;
    background:#f5faf6; border-color:#d8e8dc; }
  .admin-body .admin-v23-payment-panel h3 { font-size:16px; margin:0 0 12px; }
  .admin-body .admin-v23-payment-rows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .admin-body .admin-v23-payment-rows>div { min-width:0; background:white; padding:11px;
    border:1px solid #e1ebe3; border-radius:11px; }
  .admin-body .admin-v23-payment-rows small { font-size:10px; line-height:1.45; }
  .admin-body .admin-v23-payment-rows strong { font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
  .admin-body #resendBookingMail, .admin-body #resendOperatorMail,
  .admin-body #syncBookingPayment, .admin-body #refundBookingDetail:not([hidden]) {
    display:flex; width:100%; justify-content:center; min-height:44px; margin:7px 0; line-height:1.35;
  }
  .admin-body #bookingDetailDialog .dialog-shell { padding-bottom:calc(25px + env(safe-area-inset-bottom))!important; }
  .admin-body #bookingDetailDialog .dialog-actions { grid-template-columns:1fr; gap:8px; }
  .admin-body #bookingDetailDialog .dialog-actions button { min-height:49px; }
  .admin-body .dashboard-panels>article { border:1px solid #e0e9e1; }
  .admin-body input:not([type="checkbox"]):not([type="radio"]),
  .admin-body select,.admin-body textarea { font-size:16px!important; }
}
@media(max-width:390px) {
  .admin-body .admin-mobile-header>img { max-width:78px; }
  .admin-body .herk-voucher-quick-link { font-size:11px; padding:7px 9px; }
  .admin-body .admin-table td { grid-template-columns:75px minmax(0,1fr); gap:8px; }
  .admin-body .admin-v23-payment-rows { gap:6px; }
  .admin-body .admin-v23-payment-rows>div { padding:9px; }
}

/* Voucher administrator mobile screen: scanner, forms and actions stay fully usable. */
.voucher-admin-v25 { overflow-x:hidden; }
.voucher-admin-v25 .admin-main, .voucher-admin-v25 .card, .voucher-admin-v25 .admin-cols { min-width:0; }
.voucher-admin-v25 .card { box-shadow:0 5px 20px rgba(20,42,26,.035); }
.voucher-admin-v25 .gift-table td { overflow-wrap:anywhere; }
.voucher-admin-v25 .gift-table button:disabled { opacity:.5; cursor:not-allowed; }
.voucher-admin-v25 .tools input, .voucher-admin-v25 .fields input,
.voucher-admin-v25 .fields textarea { min-width:0; max-width:100%; }
.voucher-admin-v25 button:focus-visible, .voucher-admin-v25 a:focus-visible,
.voucher-admin-v25 input:focus-visible { outline:3px solid #e9aa3d; outline-offset:2px; }
@media(max-width:950px) {
  .voucher-admin-v25 .admin-cols { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:720px) {
  .voucher-admin-v25 .wrap { width:calc(100% - 24px); }
  .voucher-admin-v25 .nav { padding:10px 0; }
  .voucher-admin-v25 .nav .wrap { display:grid; grid-template-columns:1fr 1fr; gap:9px; align-items:center; }
  .voucher-admin-v25 .nav strong { grid-column:1/-1; grid-row:1; font-size:15px; line-height:1.3; }
  .voucher-admin-v25 .nav a { display:inline-flex; align-items:center; justify-content:center; min-height:42px;
    border:1px solid rgba(255,255,255,.22); border-radius:10px; padding:8px 9px;
    text-align:center; font-size:11px; line-height:1.25; background:rgba(255,255,255,.08); }
  .voucher-admin-v25 .nav a:first-child { grid-column:1; grid-row:2; }
  .voucher-admin-v25 .nav a:last-child { grid-column:2; grid-row:2; }
  .voucher-admin-v25 .admin-main { padding:22px 0 calc(48px + env(safe-area-inset-bottom)); }
  .voucher-admin-v25 .admin-main>h1 { margin:0 0 10px; font-size:clamp(25px,8vw,32px); line-height:1.1; letter-spacing:-.035em; }
  .voucher-admin-v25 .admin-main>.small { margin:0 0 17px; }
  .voucher-admin-v25 .card { padding:17px 14px; border-radius:17px; margin-bottom:14px!important; }
  .voucher-admin-v25 .card h2 { font-size:20px; line-height:1.22; margin:0 0 10px; }
  .voucher-admin-v25 .card p { font-size:12px; line-height:1.55; }
  .voucher-admin-v25 .admin-cols { gap:14px; }
  .voucher-admin-v25 .fields { display:grid; grid-template-columns:1fr; gap:12px; }
  .voucher-admin-v25 .fields label { font-size:13px; gap:6px; }
  .voucher-admin-v25 input:not([type="checkbox"]):not([type="file"]),
  .voucher-admin-v25 select, .voucher-admin-v25 textarea { width:100%; min-width:0; font-size:16px; min-height:48px; border-radius:12px; }
  .voucher-admin-v25 .tools { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:12px 0; }
  .voucher-admin-v25 .tools>input:not([type="file"]) { grid-column:1/-1; width:100%; margin:0; }
  .voucher-admin-v25 #restoreBookingGift { grid-column:1/-1; }
  .voucher-admin-v25 .btn { min-height:46px; padding:11px 12px; border-radius:12px; font-size:13px; line-height:1.25; }
  .voucher-admin-v25 .tools .btn { width:100%; white-space:normal; }
  .voucher-admin-v25 #startScan { background:#183d30; color:white; }
  .voucher-admin-v25 #chooseQrImage { background:#eef3e9; }
  .voucher-admin-v25 #scanPanel { border-radius:15px; padding:12px; }
  .voucher-admin-v25 #scanVideo { width:100%; max-height:48dvh; border-radius:12px; }
  .voucher-admin-v25 #stopScan { width:100%; }
  .voucher-admin-v25 .notice { padding:13px; border-radius:12px; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
  .voucher-admin-v25 .card>div[style*="justify-content:space-between"] { flex-wrap:wrap; }
  .voucher-admin-v25 .table-scroll { overflow:visible; }
  .voucher-admin-v25 .gift-table,.voucher-admin-v25 .gift-table tbody { display:block; width:100%; min-width:0; }
  .voucher-admin-v25 .gift-table thead { display:none; }
  .voucher-admin-v25 .gift-table tr { display:block; margin:0 0 12px; padding:13px;
    border:1px solid #dce7df; border-radius:15px; background:#fff;
    box-shadow:0 4px 14px rgba(22,48,31,.04); }
  .voucher-admin-v25 .gift-table td { display:grid; grid-template-columns:77px minmax(0,1fr);
    gap:10px; align-items:start; padding:6px 0; border:0; font-size:13px; line-height:1.5; }
  .voucher-admin-v25 .gift-table td::before { color:#687e70; font-size:10px; font-weight:750; padding-top:2px; }
  .voucher-admin-v25 .gift-table td:nth-child(1) { display:block; padding:0 0 10px; margin-bottom:6px; border-bottom:1px solid #edf1ed; }
  .voucher-admin-v25 .gift-table td:nth-child(1)::before { display:none; }
  .voucher-admin-v25 .gift-table td:nth-child(1) b { display:block; font-size:14px; overflow-wrap:anywhere; }
  .voucher-admin-v25 .gift-table td:nth-child(1) small { display:block; color:#67776b; }
  .voucher-admin-v25 .gift-table td:nth-child(2)::before { content:'Wert'; }
  .voucher-admin-v25 .gift-table td:nth-child(3)::before { content:'Rest'; }
  .voucher-admin-v25 .gift-table td:nth-child(4)::before { content:'Status'; }
  .voucher-admin-v25 .gift-table td:nth-child(5) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:9px; }
  .voucher-admin-v25 .gift-table td:nth-child(5)::before { content:'Aktionen'; grid-column:1/-1; }
  .voucher-admin-v25 .gift-table td:nth-child(5) button { width:100%; min-width:0; min-height:42px;
    padding:8px 7px; margin:0; font-size:12px; white-space:normal; overflow-wrap:anywhere; }
  .voucher-admin-v25 .gift-table td:nth-child(5) button[data-act="refund"] { grid-column:1/-1; }
  .voucher-admin-v25 .gift-table td[colspan] { display:block; padding:12px 0; text-align:center; }
  .voucher-admin-v25 .gift-table td[colspan]::before { display:none; }
  .voucher-admin-v25 .form-msg { overflow-wrap:anywhere; }
}
@media(max-width:365px) {
  .voucher-admin-v25 .nav .wrap { gap:6px; }
  .voucher-admin-v25 .nav a { font-size:10px; }
  .voucher-admin-v25 .gift-table td { grid-template-columns:62px minmax(0,1fr); }
}
