#adPopup{position:relative;z-index:20;width:100%;box-sizing:border-box;margin:0 0 12px;padding:4px 12px 8px 22px;border-left:3px solid #d92828;background:#f7f7f7;border-radius:0 0 12px 12px}#adPopup[hidden],#adDetail[hidden]{display:none!important}#adPopup>button{display:flex;align-items:center;width:100%;justify-content:space-between;padding:13px 10px;background:transparent;border:0;border-bottom:1px solid #ddd;text-align:left;font-size:15px;color:#1678cf}#adPopup>button:last-child{border-bottom:0}
.ad-head{display:flex;gap:12px;align-items:center}.ad-filters{display:flex;gap:8px;flex-wrap:wrap}.ad-filters input{min-width:160px;flex:2}.ad-filters select{min-width:130px;flex:1}.ad-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:10px}.ad-card{height:164px;box-sizing:border-box;display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;border:1px solid #ddd;background:white;border-radius:12px;padding:10px}.ad-photo{display:flex;flex-direction:column;gap:6px;min-width:0}.ad-image{height:102px;width:100%;display:flex;align-items:center;justify-content:center;border:0;border-radius:7px;background:#f3f3f3;color:#777;font-size:11px;overflow:hidden}.ad-image img,.ad-detail-image img{width:100%;height:100%;object-fit:contain}.ad-add{font-size:10px!important;padding:4px!important;min-height:32px}.ad-info{display:flex;flex-direction:column;gap:8px;text-align:left;overflow:hidden;background:none;border:0;padding:3px 0;cursor:pointer}.ad-info span{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.ad-info small{margin-top:auto;color:#777}.ad-detail{position:fixed;inset:0;z-index:100001;background:#0009;display:flex;align-items:center;justify-content:center;padding:15px}.ad-detail-box{background:white;border-radius:16px;padding:18px;width:min(95vw,500px);max-height:90vh;overflow:auto}.ad-detail-close{float:right;border:0;background:#eee;border-radius:9px;font-size:24px;padding:4px 12px}.ad-detail-image{height:280px;background:#f6f6f6;display:flex;align-items:center;justify-content:center;color:#888}.ad-detail-add{width:100%}#homeAussendienst[hidden]{display:none!important}
.ad-order-controls{display:flex;gap:5px;align-items:center;width:100%;min-width:0}.ad-qty{width:43px;min-width:0;box-sizing:border-box;padding:5px 2px;text-align:center;font-size:13px;border:1px solid #bbb;border-radius:7px;height:32px}.ad-order-controls .ad-add{flex:1;min-width:0;white-space:nowrap;font-size:9px!important}.ad-detail-qty{width:68px;box-sizing:border-box;padding:8px;border:1px solid #bbb;border-radius:8px;text-align:center}.ad-detail .ad-order-controls{margin-top:12px}.ad-detail .ad-order-controls .ad-detail-add{flex:1;width:auto}

/* V1.9.1.6: kompakte Marketingkarten, Bild links / Text und Bestellung rechts */
.ad-grid .ad-card{height:164px;min-height:164px;grid-template-columns:100px minmax(0,1fr);align-items:stretch;overflow:hidden}
.ad-grid .ad-card>.ad-image{width:100%;height:100%;min-height:0;align-self:stretch}
.ad-card-right{min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:space-between;gap:8px}
.ad-card-right .ad-info{flex:1;min-height:0;gap:5px;width:100%;overflow:hidden}
.ad-card-right .ad-info span{overflow:hidden;-webkit-line-clamp:3}
.ad-card-right .ad-order-controls{flex:0 0 auto;display:flex;align-items:stretch;gap:7px;width:100%;max-width:100%;box-sizing:border-box}
.ad-card-right .ad-qty{flex:0 0 49px;width:49px;height:38px;padding:4px 2px;font-size:15px}
.ad-card-right .ad-order-controls .ad-add{flex:1 1 0;width:0;min-width:0;max-width:100%;height:38px;min-height:38px;padding:5px 6px!important;font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}
@media(max-width:360px){.ad-grid .ad-card{grid-template-columns:88px minmax(0,1fr);gap:8px;padding:8px}.ad-card-right .ad-qty{flex-basis:44px;width:44px}.ad-card-right .ad-order-controls .ad-add{font-size:11px!important}}
/* V1.9.1.8 – persistent order quantity within each marketing card */
.ad-grid .ad-card{height:184px;min-height:184px}
.ad-card-right .ad-ordered{font-size:12px;line-height:1.2;font-weight:700;color:#237a3a;min-height:15px}
.ad-card-right .ad-ordered[hidden]{visibility:hidden;display:block}
.ad-detail-ordered{font-weight:700;color:#237a3a}
@media(max-width:360px){.ad-grid .ad-card{height:190px;min-height:190px}.ad-card-right .ad-ordered{font-size:11px}}

/* V1.9.1.10 – order count above aligned controls */
#adModule .ad-card-right{justify-content:initial!important;gap:5px!important}
#adModule .ad-card-right .ad-info{flex:1 1 auto!important;min-height:0!important}
#adModule .ad-card-right .ad-ordered{flex:0 0 auto!important;min-height:17px!important;line-height:17px!important;order:1!important}
#adModule .ad-card-right .ad-order-controls{flex:0 0 auto!important;order:2!important;align-items:stretch!important;margin-top:0!important}
#adModule .ad-card-right .ad-qty,#adModule .ad-card-right .ad-add{height:42px!important;min-height:42px!important;box-sizing:border-box!important}
#adModule .ad-detail .ad-detail-qty,#adModule .ad-detail .ad-detail-add{height:48px!important;min-height:48px!important;box-sizing:border-box!important}

/* V1.9.1.11: fixed two-line name and one-line secondary article text */
#adModule .ad-card-right .ad-info{display:flex;flex-direction:column;justify-content:flex-start;gap:3px!important;flex:1 1 auto;overflow:hidden}
#adModule .ad-card-right .ad-info .ad-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;line-height:1.3;max-height:2.6em;flex:0 0 auto}
#adModule .ad-card-right .ad-info .ad-text2{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3;flex:0 0 auto;color:#626b74;font-size:12px}
#adModule .ad-card-right .ad-info .ad-text2[hidden],#adModule .ad-detail-text2[hidden]{display:none!important}
#adModule .ad-card-right .ad-order-controls .ad-add{font-size:14px!important;font-weight:700!important;padding:8px 10px!important;border-radius:10px!important;white-space:nowrap}
#adModule .ad-card-right .ad-qty{font-size:15px!important}
#adModule .ad-detail-text2{color:#626b74;font-size:14px;white-space:normal}

/* V1.9.1.14: Mengenfeld und Bestellbutton exakt auf einer Grundlinie */
#adModule .ad-card-right .ad-order-controls{
  display:grid!important;
  grid-template-columns:49px minmax(0,1fr)!important;
  align-items:stretch!important;
  align-content:stretch!important;
  column-gap:7px!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
#adModule .ad-card-right .ad-order-controls > .ad-qty,
#adModule .ad-card-right .ad-order-controls > .ad-add{
  display:block!important;
  position:static!important;
  align-self:stretch!important;
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  box-sizing:border-box!important;
  vertical-align:top!important;
}
#adModule .ad-card-right .ad-order-controls > .ad-add{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1.15!important;
}
@media(max-width:360px){#adModule .ad-card-right .ad-order-controls{grid-template-columns:44px minmax(0,1fr)!important}}
