/* ===== Design-Variablen ===== */
:root{
  --brand:#8f2500;
  --ink:#55413c;
  --ink-weak:#6b5a55;
  --bg:#fff;
  --muted:#e7dedb;
  --shadow:0 18px 40px rgba(0,0,0,.18);
}

/* ===== Grundrahmen (alle Richtungen) ===== */
#up_frame, #left_frame, #right_frame, #down_frame {
  display:none;
  position:fixed;
  z-index:9998;
  padding:25px;
  background:var(--bg);
  border-radius:14px;
  box-shadow:var(--shadow);
  color:var(--ink);
  line-height:1.5;
}
@media (min-width:769px){
  #up_frame.show, #left_frame.show, #right_frame.show, #down_frame.show, #center_frame.show { display:block; }
}
@media (max-width:768px){
  #up_frame.show, #left_frame.show, #right_frame.show, #down_frame.show, #center_frame.show { display:block; text-align:left; }
}

/* ===== Overlay (dunkler Hintergrund) ===== */
#center_frame{
  display:none;
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.45);
  backdrop-filter:saturate(120%) blur(2px);
  z-index:9999;
  animation:fadeIn .2s ease-out;
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* ===== Popup-Fenster ===== */
.window-c{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:min(90%,640px);
  max-height:85vh;
  overflow-y:auto;
  background:var(--bg);
  color:var(--ink);
  border:1px solid var(--muted);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:22px 24px 26px;
  z-index:10000;
  display:flex;
  flex-direction:column;
  justify-content:center;
  animation:popupIn .25s ease-out;
}
@keyframes popupIn{from{transform:translate(-50%,-46%) scale(.96);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}

@media (max-width:640px){
  .window-c{ width:85%; max-width:450px; padding:18px; border-radius:12px; }
}
@media (max-width:480px){
  .window-c{ width:88%; max-width:400px; }
}
@media (max-width:375px){
  .window-c{ width:90%; max-width:340px; }
}

/* ===== Textbereich ===== */
.window-txt-c{
  color:var(--ink);
}
.window-txt-c h1{
  font-size:1.4rem;
  margin:0 0 1rem;
  text-align:center;
}
.window-txt-c h1 a{
  color:var(--brand);
  text-decoration:none;
}
.window-txt-c h1 a:hover{
  text-decoration:underline;
}
.window-txt-c ol{
  margin:0;
  padding-left:1.2rem;
}
.window-txt-c li{
  margin-bottom:.6rem;
}
.window-txt-c a{
  color:var(--brand);
  text-decoration:none;
}
.window-txt-c a:hover{
  text-decoration:underline;
}

/* ===== Buttons ===== */
.cb-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-weight:700;
  font-size:15px;
  border-radius:999px;
  padding:10px 16px;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  transition:filter .15s ease;
  box-shadow:0 6px 18px rgba(143,37,0,.18);
}
.btn.blue{background:var(--brand);color:#fff;}
.btn.blue:hover{filter:brightness(1.05);}
.btn.ghost{background:#fff;color:var(--brand);border:1px solid var(--muted);}
.btn.ghost:hover{filter:brightness(1.05);}

/* ===== Schließen-Button ===== */
.close-btn{
  position:absolute;
  top:10px;
  right:10px;
  width:32px;
  height:32px;
  display:inline-grid;
  place-items:center;
  cursor:pointer;
  font-size:16px;
  color:#777;
  background:transparent;
  border:0;
  border-radius:8px;
}
.close-btn:hover{background:rgba(0,0,0,.05);color:#555;}
/* ---------- PREIS (korrekter Selektor) ---------- */
.popup-content .product-price{
  font-size:1.05rem;
  font-weight:700;
  color:var(--brand, #8f2500);
  background:#fff6f3;
  border:1px solid #e0c5bc;
  display:inline-block;              /* kein Vollbreiten-Balken mehr */
  padding:6px 12px;
  border-radius:8px;
  margin-top:6px;
  margin-bottom:6px;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.06);
  transition:background-color .25s, box-shadow .25s, border-color .25s;
}
.popup-content .product-price::before{
  content:"💰 ";
  font-size:1.05em; opacity:.9; vertical-align:middle;
}
.popup-content .product-price:hover{
  background:#fff0ea;
  border-color:var(--brand, #8f2500);
  box-shadow:0 2px 6px rgba(143,37,0,.15);
}

/* Bild leicht abrunden (optional) */
.newprodukt-image img{
  border-radius:6px;
  display:block;
  margin:0 auto 8px;
}

/* Mobile Feinschliff */
@media (max-width:600px){
  .popup-content .product-price{ font-size:1rem; padding:5px 10px; }
}

/* ===== Einheitliches Template-Popup-Design ===== */
.popup-container{
  display:none;
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:10000;
  width:min(420px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  text-align:left;
}
.popup-container.is-visible,
.booking-popup-card.is-open{
  display:block;
}
.popup-container.popup-container--centered{
  inset:0;
  width:auto;
  max-width:none;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.45);
  backdrop-filter:saturate(120%) blur(2px);
}
.popup-container .popup-content,
.booking-popup-card .popup-content{
  position:relative;
  width:100%;
  max-height:min(86vh,760px);
  overflow:auto;
  background:var(--bg);
  color:var(--ink);
  border:1px solid var(--muted);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:22px 24px 24px;
}
.popup-container.popup-container--centered .popup-content{
  width:min(90vw,640px);
}
.popup-container .popup-content .close-btn,
.booking-popup-card .popup-content .close-btn{
  position:sticky;
  top:0;
  margin-left:auto;
  right:auto;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  background:#fff;
  border:1px solid var(--muted);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  z-index:5;
}
.popup-container .popup-content .newprodukt,
.booking-popup-card .popup-content h3{
  margin-top:6px;
}
.booking-popup-card{
  right:20px;
  bottom:96px;
  width:min(420px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
}
.booking-popup-card .popup-content h3{
  font-size:1.12rem;
  margin-bottom:8px;
}
.booking-popup-card .popup-content p{
  margin:0 0 12px;
  color:var(--ink);
}
.booking-popup-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media (min-width:1100px){
  .hero-slider-shell{
    margin-right:24px;
  }
}

@media (max-width:768px){
  .popup-container{
    left:12px;
    right:12px;
    bottom:12px;
    width:auto;
    max-width:none;
  }
  .popup-container.popup-container--centered{
    padding:12px;
    align-items:flex-end;
  }
  .popup-container .popup-content,
  .booking-popup-card .popup-content{
    padding:18px 16px 18px;
    border-radius:14px;
    max-height:min(88dvh,720px);
  }
  .booking-popup-card{
    left:12px;
    right:12px;
    bottom:84px;
    width:auto;
    max-width:none;
  }
  .booking-popup-actions .btn,
  .popup-container .btn{
    width:100%;
  }
}
