.wh-focus-controls{
  margin:16px 0 8px;padding:16px;
  border:1px solid #e6e7e8;border-radius:12px;background:#fff
}
.wh-focus-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wh-focus-heading strong{font:600 14px Montserrat,sans-serif;color:#8c3a76}
.wh-focus-heading button{
  border:0;background:transparent;color:#8c3a76;
  font-size:12px;font-weight:600
}
.wh-focus-controls p{margin:7px 0 14px;color:#6b6b6b;font-size:12px}
.wh-focus-controls label{display:block;margin-top:12px}
.wh-focus-controls label span{
  display:flex;justify-content:space-between;
  font-size:12px;color:#2d2d2d
}
.wh-focus-controls input[type=range]{
  width:100%;accent-color:#8c3a76;cursor:pointer
}
.flyer-photo-box{
  border-radius:0!important;background:#fff!important;
  background-image:none!important
}
.flyer-photo-box::before{display:none!important}
.flyer-photo{
  object-fit:cover!important;
  filter:none!important
}

.wh-focus-formats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.wh-focus-formats button{border:1px solid #d9c7d3;border-radius:8px;background:#fff;color:#8c3a76;padding:9px 6px;font:600 12px Montserrat,sans-serif;cursor:pointer}
.wh-focus-formats button.active{background:#8c3a76;color:#fff;border-color:#8c3a76}
.flyer-photo{object-fit:fill!important;transform:none!important}
.flyer-facts>div{gap:4px}
.flyer-fact-icon{width:13px;height:13px;flex:none}
.flyer-contact{display:flex;align-items:center;gap:4px;margin-top:3px;color:#423447;font-size:8px;font-weight:600;white-space:nowrap}
.flyer-contact img{width:11px!important;height:11px!important;flex:none;margin-left:5px}
.flyer-cta{flex-basis:72px;height:72px}
.flyer-cta img:not(.flyer-contact img){flex:none}

.flyer-description{flex-basis:95px;height:95px}
.flyer-cta{flex-basis:80px;height:80px;position:relative;padding:7px 10px}
.flyer-contact{position:absolute;left:12px;bottom:7px;margin:0;line-height:1.15}
.flyer-contact img{image-rendering:auto!important}

.flyer-cta small{display:none!important}

.story-preview{width:min(100%,300px)}

.flyer-scale{position:relative;overflow:hidden}
.flyer-scale>.flyer{position:absolute;top:14px;left:50%;margin:0;transform-origin:top left}
@media screen and (max-width:600px){
  .flyer-scale{height:421px}
  .flyer-scale>.flyer{transform:scale(.55) translateX(-252px)}
}
@media print{
  .flyer-scale{display:block!important;overflow:visible!important;height:auto!important}
  .flyer-scale>.flyer{position:relative!important;top:auto!important;left:auto!important;zoom:1!important;transform:scale(1.55)!important}
}

@media screen and (min-width:901px){.story-preview{width:min(100%,360px)}}

/* Bildausschnitt direkt bei den Reglern, nur auf schmalen Bildschirmen */
.wh-focus-live{display:none}
@media screen and (max-width:900px){
  .wh-focus-live{
    display:grid;place-items:center;position:sticky;top:8px;z-index:4;
    margin:12px auto 8px;overflow:hidden;background:#f2f8f5;
    border-radius:9px;box-shadow:0 4px 14px #0002;
    color:#8c3a76;text-align:center;font-size:12px
  }
  .wh-focus-live-flyer{width:min(100%,260px);aspect-ratio:456/260}
  .wh-focus-live-story{width:min(100%,190px);aspect-ratio:1}
  .wh-focus-live img{display:block;width:100%;height:100%;object-fit:fill}
  .wh-focus-live-story img{
    position:absolute;left:-6.25%;top:-23.4375%;
    width:112.5%;height:auto;max-width:none
  }
}

/* Mehr Fotofläche auf A4 bei vollständigem Text und QR-Code */
.flyer{padding:14px 24px 12px}
.flyer-head{margin-bottom:4px}
.flyer-photo-box{flex-basis:260px;height:260px}
.flyer-title{
  flex-basis:55px;height:55px;min-height:0;
  padding:4px 0 1px
}
.flyer-title span{display:block;line-height:10px}
.flyer-title h2{margin-top:2px;line-height:30px}
.flyer-facts{
  flex-basis:120px;margin-top:4px;padding:6px 12px;
  grid-template-rows:20px repeat(3,27px)
}
.flyer-facts>b{line-height:18px}
.flyer-facts>div{padding:1px 5px}
.flyer-description{margin-top:6px}
.flyer-cta{
  flex-basis:72px;height:72px;margin-top:3px;
  padding:6px 10px
}

/* Nur gesuchte Pflegestelle oder Patenschaft am A4-Foto */
.flyer-photo-box{position:relative}
.wh-flyer-status-wrap{
  position:absolute;left:9px;bottom:9px;z-index:2;
  display:flex;flex-wrap:wrap;gap:5px;max-width:calc(100% - 18px)
}
.wh-flyer-status{
  display:inline-flex;align-items:center;gap:5px;padding:5px 8px;
  border-radius:5px;background:#687d26;color:#fff;
  font-size:11px;font-weight:700;line-height:1.2;
  box-shadow:0 2px 8px #0005
}
.wh-flyer-status svg{flex:none}
.wh-flyer-status-pg{background:#8c3a76}
.flyer-cta b{display:block;font-size:14px;line-height:1.15}
.flyer-cta p{font-size:11px;line-height:1.2;margin-top:4px}

/* Textbaseline im html2canvas-PDF ausgleichen; Vorschau bleibt unverändert */
.wh-flyer-status-label{display:inline-block}
.wh-pdf-capture .wh-flyer-status-label{position:relative;top:-5px}

/* html2canvas setzt Text neben Icons tiefer als der Browser */
.wh-pdf-capture .flyer-facts>div>span,
.wh-pdf-capture .flyer-facts>div>strong,
.wh-pdf-capture .wh-flyer-contact-label{
  position:relative;
  top:-4px
}

/* Identischer CTA in Bildschirmvorschau und PDF-Erfassung; Druck-CSS bleibt separat */
@media screen {
  .flyer-cta{align-items:flex-start}
  .flyer-cta>div{max-width:350px;min-width:0}
  .flyer-cta b{font-size:13px;line-height:14px}
  .flyer-cta p{
    font-size:10px;line-height:11px;margin:4px 0 0
  }
  .flyer-contact{bottom:5px}
}

/* A4-Titel: gleiche Zweizeilen-Gestaltung in Vorschau, PDF und Druck */
.flyer-title{padding:2px 0 0}
.flyer-title .wh-flyer-intro{
  display:block;color:#2d2d2d;
  font:600 14px/16px Montserrat,sans-serif
}
.flyer-title h2{
  margin:0;color:#8c3a76;
  font:600 30px/32px Montserrat,sans-serif
}

/* Stapelmodus: dieselben Bedienelemente auf Desktop und Mobilgeräten. */
.wh-batch{margin:20px 0;padding:16px;border:1px solid #e6e7e8;border-radius:14px;background:#fff}
.wh-batch h3{margin:0;color:#8c3a76;font:600 17px Montserrat,sans-serif}
.wh-batch p{margin:5px 0;color:#626262;line-height:1.4}
.wh-batch-head,.wh-batch-summary,.wh-batch-actions,.wh-batch-row,.wh-batch-row-actions,
.wh-batch-backup{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.wh-batch button{cursor:pointer;min-height:38px;padding:7px 12px;border:1px solid #8c3a76;
  border-radius:7px;background:#fff;color:#8c3a76;font:600 12px Montserrat,sans-serif}
.wh-batch button:hover:not(:disabled){background:#f8edf5}
.wh-batch button:disabled{opacity:.5;cursor:not-allowed}
.wh-batch-actions{justify-content:flex-start;margin:14px 0}
.wh-batch-actions button:nth-child(2){background:#8c3a76;color:#fff}
.wh-batch-summary{margin:16px 0;padding:10px;background:#f2f8f5;border-radius:8px;font-size:12px}
.wh-batch-backup label{position:relative;overflow:hidden;cursor:pointer;color:#8c3a76;font-weight:600}
.wh-batch-backup input{position:absolute;opacity:0;inset:0;width:100%;cursor:pointer}
.wh-batch-search{display:block;margin:12px 0;font-size:12px;font-weight:600}
.wh-batch-search input{display:block;width:100%;margin-top:5px;padding:10px;border:1px solid #cfcfcf;border-radius:7px}
.wh-batch-list{max-height:430px;overflow:auto;overscroll-behavior:contain;border-top:1px solid #e6e7e8}
.wh-batch-row{padding:8px 0;border-bottom:1px solid #e6e7e8}
.wh-batch-dog{display:flex;align-items:center;gap:10px;min-width:0}
.wh-batch-dog img{width:42px;height:42px;object-fit:cover;border-radius:7px}
.wh-batch-dog strong,.wh-batch-dog small{display:block}
.wh-batch-dog small{font-size:11px;color:#626262}
.wh-batch-row-actions{justify-content:flex-end}
.wh-batch-row-actions label{white-space:nowrap;font-size:12px;font-weight:600}
.wh-batch-row-actions input{accent-color:#8c3a76}
.wh-batch-error{padding:10px;border-radius:7px;background:#fff2f2;color:#8b2525!important}
.wh-batch-message{padding:8px 10px;border-radius:7px;background:#f2f8f5;color:#2d2d2d!important}
.wh-batch-capture{position:fixed;left:-10000px;top:0;width:504px;z-index:-1;pointer-events:none}
.wh-batch-overlay{
  position:fixed;inset:0;z-index:2147483647;display:grid;place-items:center;
  padding:20px;background:#f9f9f9;overflow:auto
}
.wh-batch-dialog{
  width:min(100%,460px);padding:30px;border:1px solid #e6e7e8;border-radius:18px;
  background:#fff;box-shadow:0 20px 70px #38243220;
  animation:whBatchAppear .28s ease-out both
}
.wh-batch-dialog-icon{
  display:grid;place-items:center;width:52px;height:52px;margin-bottom:20px;
  border-radius:15px;background:#f8edf5
}
.wh-batch-spinner{
  display:block;width:25px;height:25px;border:3px solid #dcbdd3;
  border-top-color:#8c3a76;border-radius:50%;animation:whBatchSpin .8s linear infinite
}
.wh-batch-dialog h2{margin:0;color:#392e35;font:600 22px/1.25 Montserrat,sans-serif}
.wh-batch-dialog p{margin:12px 0 0;color:#626262;font:400 15px/1.5 'Source Sans Pro',sans-serif}
.wh-batch-dialog .wh-batch-dialog-current{margin-top:24px;color:#6a2c58;font-weight:700}
.wh-batch-dialog-progress{height:9px;margin-top:12px;border-radius:99px;background:#f1e8ef;overflow:hidden}
.wh-batch-dialog-progress span{display:block;height:100%;border-radius:inherit;background:#8c3a76;transition:width .3s ease}
.wh-batch-dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;color:#626262;font-size:13px}
.wh-batch-dialog-foot button{flex:none}
@keyframes whBatchAppear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes whBatchSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){
  .wh-batch-dialog,.wh-batch-spinner{animation:none}
  .wh-batch-dialog-progress span{transition:none}
}
@media(max-width:600px){
  .wh-batch{padding:12px}
  .wh-batch-head,.wh-batch-summary,.wh-batch-row{align-items:stretch;flex-direction:column}
  .wh-batch-actions button{flex:1 1 100%}
  .wh-batch-row-actions{justify-content:space-between}
  .wh-batch-row-actions button{min-width:110px}
  .wh-batch-dialog{padding:24px}
}
@media print{.wh-batch,.wh-batch-overlay{display:none!important}}
