/* Clubkino Gelenau V17.3 – gezielte Korrekturen, ohne bestehende Layoutdateien zu ersetzen. */
/* 1. Öffentlicher Terminkalender: horizontales Scrollen bleibt im Streifen. */
body[data-page="public"] #program-area .day-tabs{
  max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;scroll-behavior:auto;
}
/* 2. Mobil: Seitenbreite bleibt auf dem Bildschirm; echte Karussells scrollen intern. */
html{max-width:100%;overflow-x:clip}
body[data-page="public"]{max-width:100%;overflow-x:clip}
body[data-page="public"] main,body[data-page="public"] main>section,
body[data-page="public"] .container,body[data-page="public"] .film-overview,
body[data-page="public"] .program{min-width:0;max-width:100%;box-sizing:border-box}
body[data-page="public"] .film-cards,body[data-page="public"] .v15-poster-gallery,
body[data-page="public"] .v16-photos-frame,body[data-page="public"] .v16-photos-track{
 max-width:100%;min-width:0;
}
body[data-page="public"] .show-line,body[data-page="public"] .show-main,
body[data-page="public"] .film-dialog-layout>*,body[data-page="public"] .film-dialog-layout{min-width:0}
body[data-page="public"] .show-title,body[data-page="public"] .show-sub{overflow-wrap:anywhere}
/* 3. Modale Filminfos: nur Dialog scrollt; Seite dahinter ruht (JS lockt die Scrollposition). */
body.ck19-dialog-locked{position:fixed!important;left:0;right:0;width:100%;overflow:hidden!important}
#film-dialog,#quick-dialog,.v17-share-dialog{
 max-height:calc(100dvh - 20px)!important;
 overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 box-sizing:border-box;
}
#film-dialog .modal-inner,#quick-dialog .modal-inner{min-width:0;max-height:none!important;overflow:visible!important}
#film-dialog :is(button,input,select,textarea),#quick-dialog :is(button,input,select,textarea){touch-action:manipulation}
@media(max-width:700px){
  #film-dialog,#quick-dialog,.v17-share-dialog{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;margin:auto!important}
  #film-dialog .film-dialog-layout{grid-template-columns:minmax(0,1fr)!important;max-width:100%!important}
  #film-dialog .modal-inner{padding:16px!important}
  #film-dialog img,#film-dialog canvas{max-width:100%;height:auto}
  body[data-page="public"] :is(.header,.mobile-nav,.hero,.hero-actions,.info-inner,.foot-row,.film-overview,.program){max-width:100%;min-width:0}
  body[data-page="public"] .hero-copy{min-width:0}
}
/* 4. Kompakte interne Reservierung, ohne API-Änderungen. */
body[data-page="admin"] #manual-panel{padding-block:8px!important}
body[data-page="admin"] #manual-panel h3{margin:0 0 4px!important;font-size:18px!important}
body[data-page="admin"] .ck18-manual-context{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;
 gap:4px 9px!important;padding:5px 9px!important;margin:2px 0 6px!important;
 min-height:0!important;
}
body[data-page="admin"] .ck18-manual-context strong{flex:1 1 220px!important;font-size:12px!important;line-height:1.2!important}
body[data-page="admin"] .ck18-manual-context button{min-height:27px!important;padding:3px 6px!important;font-size:11px!important}
body[data-page="admin"] #new-form{display:grid;gap:5px}
body[data-page="admin"] #new-form .field-grid{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(80px,.8fr);gap:7px}
body[data-page="admin"] #new-form label{margin:0!important;min-width:0;font-size:12px}
body[data-page="admin"] #new-form input:not([type="hidden"]){min-height:34px!important;padding:5px 8px!important;width:100%;box-sizing:border-box;font-size:14px!important}
body[data-page="admin"] #ck19-table-help{display:block;font-size:10px;line-height:1.2;margin:1px 0 0}
body[data-page="admin"] #new-form .form-bottom{margin:3px 0 0!important;gap:6px!important;flex-wrap:wrap}
body[data-page="admin"] #new-form .form-bottom button{min-height:33px;padding:6px 10px;font-size:12px}
body[data-page="admin"] #manual-panel .ck17-hidden-show,body[data-page="admin"] #manual-panel .ck17-hidden-notes{display:none!important}
/* 5. Lesbarere Kalendertage und Spielzeiten. */
body[data-page="admin"] .ck17-calendar-popup{max-width:calc(100vw - 20px);max-height:80dvh;overflow-y:auto}
body[data-page="admin"] .team-calendar .cal-day{min-height:45px!important;font-size:18px!important;line-height:1.2!important;font-weight:750!important}
body[data-page="admin"] .team-calendar .cal-weekday{font-size:13px!important;font-weight:800!important}
body[data-page="admin"] .team-calendar .cal-title strong{font-size:18px!important}
body[data-page="admin"] #daily-show-options [data-day-show]{min-height:42px!important;font-size:14px!important}
body[data-page="admin"] #daily-show-options .cal-show-heading{font-size:15px!important}
/* 6. Saalplan: Druck in A4 quer, ohne Formulare, mit möglichst großer Tischausgabe. */
@page{size:A4 landscape;margin:7mm}
@media print{
 body[data-page="admin"]{background:#fff!important;color:#171717!important;overflow:visible!important}
 body[data-page="admin"] .header,
 body[data-page="admin"] .team-intro,
 body[data-page="admin"] #login-section,
 body[data-page="admin"] #v16-arrival-mode,
 body[data-page="admin"] .booking-panel,
 body[data-page="admin"] .legend,
 body[data-page="admin"] .manager,
 body[data-page="admin"] #toast,
 body[data-page="admin"] .ck17-calendar-popup,
 body[data-page="admin"] #ck17-calendar-toggle,
 body[data-page="admin"] .ck17-top-actions,
 body[data-page="admin"] .seat-warning{display:none!important}
 body[data-page="admin"] main.team-main,
 body[data-page="admin"] #team-section,
 body[data-page="admin"] #v16-normal-workstation,
 body[data-page="admin"] .workstation,
 body[data-page="admin"] .hall-panel{
  display:block!important;position:static!important;width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;margin:0!important;padding:0!important;
  border:0!important;box-shadow:none!important;overflow:visible!important;
 }
 body[data-page="admin"] .ck17-top-strip{
  display:block!important;min-height:0!important;box-shadow:none!important;
  padding:2mm 0 3mm!important;margin:0 0 3mm!important;border:0!important;border-bottom:1px solid #888!important;
 }
 body[data-page="admin"] .ck17-selected-date strong{font-size:18pt!important}
 body[data-page="admin"] .ck17-selected-date span{font-size:12pt!important}
 body[data-page="admin"] .hall-panel .screen-shape{margin:0 0 3mm!important;padding:2mm!important;font-size:14pt!important}
 body[data-page="admin"] #hall-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:minmax(25mm,auto)!important;gap:2.4mm!important;
  max-height:none!important;height:auto!important;min-height:0!important;overflow:visible!important;
 }
 body[data-page="admin"] #hall-grid .hall-table{
  box-sizing:border-box!important;min-height:25mm!important;break-inside:avoid!important;
  padding:2mm!important;border:1px solid #555!important;background:#fff!important;
  color:#111!important;box-shadow:none!important;
 }
 body[data-page="admin"] #hall-grid .hall-table .table-number{font-size:9pt!important;color:#333!important}
 body[data-page="admin"] #hall-grid .hall-table .table-customer b{font-size:11pt!important;color:#111!important;line-height:1.15!important}
 body[data-page="admin"] #hall-grid .hall-table .table-customer small{font-size:10pt!important;color:#111!important}
 body[data-page="admin"] #hall-grid .hall-table .table-free{font-size:10pt!important}
 body[data-page="admin"] a[href]::after{content:none!important}
}
