﻿* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: #fff4d6;
  background:
    radial-gradient(circle at top, rgba(255, 211, 107, .16), transparent 32%),
    linear-gradient(135deg, #140000, #350000 55%, #150000);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wrap {
  width: min(1040px, 100%);
  display: grid;
  gap: 22px;
}

.card {
  border: 1px solid #b77a22;
  background: linear-gradient(180deg, rgba(70,10,0,.96), rgba(25,0,0,.96));
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(0,0,0,.38);
  padding: 28px;
}

.brand {
  color: #ffd36b;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px #000;
}

h1 { margin: 10px 0 8px; font-size: 34px; }
p { line-height: 1.5; opacity: .92; }

form {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

label {
  grid-column: 1 / -1;
  font-weight: 900;
  color: #ffd36b;
}

input {
  width: 100%;
  border: 2px solid #b77a22;
  border-radius: 18px;
  background: #190000;
  color: #fff4d6;
  padding: 16px 18px;
  font-size: 30px;
  letter-spacing: 8px;
  text-align: center;
  outline: none;
}

button {
  border: none;
  border-radius: 18px;
  padding: 18px 22px;
  background: linear-gradient(#ffd36b, #c98322);
  color: #260000;
  font-weight: 900;
  cursor: pointer;
  font-size: 17px;
}

.message { margin-top: 16px; font-weight: 900; color: #ffb3a8; }
.hidden { display: none; }

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(183,122,34,.55);
  padding-bottom: 18px;
}

.result-head small {
  color: #ffd36b;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.result-head h2 {
  margin: 4px 0 0;
  font-size: 40px;
}

.status-pill {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  color: #220000;
  background: #ffd36b;
  white-space: nowrap;
}

.status-eingegangen { background: #ffd36b; }
.status-geprueft { background: #b26bff; color: #1d0033; }
.status-zubereitung { background: #ff9f2b; }
.status-unterwegs { background: #5db2ff; color: #001b33; }
.status-fertig { background: #67d36b; color: #002b03; }

.progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
}

.step {
  text-align: center;
  opacity: .45;
}

.step span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #3b1008;
  border: 1px solid #b77a22;
  font-weight: 900;
}

.step.active {
  opacity: 1;
  color: #ffd36b;
}

.step.active span {
  background: linear-gradient(#ffd36b, #c98322);
  color: #260000;
}

.line {
  height: 3px;
  background: rgba(255,211,107,.25);
  border-radius: 99px;
}

.line.active { background: #ffd36b; }

.details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(183,122,34,.35);
  padding-top: 20px;
  line-height: 1.5;
}

.details strong { color: #ffd36b; }

.status-text {
  margin-top: 22px;
  border: 1px solid rgba(255,211,107,.35);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0,0,0,.22);
  font-size: 18px;
}

.order-list {
  margin-top: 28px;
  border-top: 1px solid rgba(255,211,107,.25);
  padding-top: 22px;
}

.order-list h3 {
  color: #ffd36b;
  margin-bottom: 18px;
  font-size: 26px;
}

.order-item {
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255,211,107,.25);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.order-item-sub {
  margin-top: 6px;
  opacity: .92;
  line-height: 1.5;
}

@media (max-width: 900px) {
  form { grid-template-columns: 1fr; }
  .result-head { flex-direction: column; }
  .progress { grid-template-columns: 1fr; }
  .line { height: 18px; width: 3px; margin: 0 auto; }
  .details { grid-template-columns: 1fr; }
}

.site-mini-nav{
  position:fixed;top:0;left:0;right:0;z-index:99;display:flex;gap:10px;justify-content:center;
  padding:10px;background:rgba(20,0,0,.94);border-bottom:1px solid #b77a22
}
.site-mini-nav a{
  color:#260000;text-decoration:none;font-weight:900;
  background:linear-gradient(#ffd36b,#c98322);padding:8px 14px;border-radius:999px
}
body{padding-top:70px}


/* Bestellung prüfen: Hinweis statt Browser-Popup */
.order-code-notice {
  margin: 14px 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 211, 107, .9);
  border-radius: 14px;
  background: rgba(255, 211, 107, .10);
  color: #fff4d0;
  font-size: 15px;
  line-height: 1.45;
}

.order-code-notice.show {
  display: block !important;
}

.order-code-notice-title {
  color: #ffd36b;
  font-weight: 900;
  margin-bottom: 5px;
}

#orderCodeNoticeValue {
  color: #ffd36b;
  font-size: 18px;
}

/* Bestellung-prüfen Buttons besser ausrichten */
.order-check-actions,
.checkout-actions,
.modal-actions,
.confirm-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

.order-check-actions button,
.checkout-actions button,
.modal-actions button,
.confirm-actions button {
  min-width: 150px;
}

@media (max-width: 700px) {
  .order-check-actions,
  .checkout-actions,
  .modal-actions,
  .confirm-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .order-check-actions button,
  .checkout-actions button,
  .modal-actions button,
  .confirm-actions button {
    width: 100%;
  }
}


/* Checkout Hinweise */
.checkout-important-notices{
  margin:14px 0 10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.checkout-notice{
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  line-height:1.4;
  border:1px solid rgba(255,211,107,.4);
}

.checkout-notice.warning{
  background:rgba(255,140,0,.12);
  color:#ffd27a;
}

.checkout-notice.info{
  background:rgba(255,211,107,.08);
  color:#fff1c7;
}

.invalid-phone{
  border:2px solid #ff4b4b !important;
  box-shadow:0 0 12px rgba(255,75,75,.4);
}

#checkoutForm button[type="submit"]:disabled{
  opacity:.5;
  cursor:not-allowed;
}


/* Checkout Hinweise direkt im Kundendatenformular */
.checkout-form-hints{
  grid-column: 1 / -1;
  margin: 4px 0 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.checkout-form-hint{
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.35;
  border: 1px solid rgba(255,211,107,.45);
  font-weight: 700;
}

.checkout-form-hint.warning{
  background: rgba(255, 132, 0, .16);
  color: #ffd17a;
}

.checkout-form-hint.info{
  background: rgba(255,211,107,.10);
  color: #fff0c7;
}

.invalid-phone{
  border: 2px solid #ff4b4b !important;
  box-shadow: 0 0 10px rgba(255,75,75,.45);
}

#checkoutForm button[type="submit"]:disabled{
  opacity:.55;
  cursor:not-allowed;
  filter:saturate(.7);
}


/* ======================================================
   FINAL FIX: Warenkorb-Layout sauber/kompakt
   ====================================================== */

/* Overlay/Panel nicht mehr riesig leer laufen lassen */
.cart,
.cart-panel,
.cart-drawer,
.cart-modal,
#warenkorb,
#cart,
[class*="cart"]{
  box-sizing:border-box !important;
}

/* Rechte Warenkorb-Schublade / Modal */
.cart-panel,
.cart-drawer,
.cart-modal,
#warenkorb,
#cart{
  height:auto !important;
  min-height:0 !important;
  max-height:calc(100vh - 18px) !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
}

/* Warenkorb-Inhalt: nur scrollen, wenn wirklich zu viel drin ist */
.cart-items,
#warenkorbItems,
#cartItems,
.cart-list,
[class*="cart-items"],
[class*="cart-list"]{
  flex:0 1 auto !important;
  min-height:0 !important;
  height:auto !important;
  max-height:calc(100vh - 250px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:10px 14px 12px !important;
  box-sizing:border-box !important;
}

/* Artikelkarte im Warenkorb kompakter */
.cart-item,
.warenkorb-item,
.basket-item,
[class*="cart-item"]{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 0 10px 0 !important;
  padding:12px !important;
  border-radius:14px !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

/* Leerraum nach letzter Karte vermeiden */
.cart-item:last-child,
.warenkorb-item:last-child,
.basket-item:last-child,
[class*="cart-item"]:last-child{
  margin-bottom:0 !important;
}

/* Close-Button sauber innerhalb des Warenkorbs */
.cart-close,
.close-cart,
#warenkorbClose,
#cartClose,
button[aria-label="Warenkorb schließen"],
button[aria-label="Schließen"]{
  position:absolute !important;
  top:10px !important;
  right:10px !important;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  border-radius:999px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  z-index:20 !important;
  margin:0 !important;
}

/* Warenkorb Kopf mit Platz für X */
.cart-header,
.warenkorb-header,
#cartHeader,
#warenkorbHeader,
[class*="cart-header"]{
  position:relative !important;
  padding-right:58px !important;
  flex-shrink:0 !important;
}

/* Extras sauber als Chips umbrechen */
.cart-item .extras,
.cart-item .extra-list,
.cart-item [class*="extra"],
.warenkorb-item .extras,
.warenkorb-item .extra-list,
.warenkorb-item [class*="extra"]{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  align-items:center !important;
}

/* Extra-Chips kompakt */
.cart-item .extras button,
.cart-item .extra-list button,
.cart-item [class*="extra"] button,
.warenkorb-item .extras button,
.warenkorb-item .extra-list button,
.warenkorb-item [class*="extra"] button{
  width:auto !important;
  min-width:0 !important;
  height:28px !important;
  min-height:28px !important;
  max-height:28px !important;
  padding:0 9px !important;
  font-size:11px !important;
  line-height:1 !important;
  border-radius:999px !important;
  white-space:nowrap !important;
}

/* Menge +/- besser ausrichten */
.cart-item .qty,
.cart-item .quantity,
.cart-item [class*="qty"],
.cart-item [class*="quantity"],
.warenkorb-item .qty,
.warenkorb-item .quantity,
.warenkorb-item [class*="qty"],
.warenkorb-item [class*="quantity"]{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:8px 0 !important;
}

.cart-item .qty button,
.cart-item .quantity button,
.cart-item [class*="qty"] button,
.cart-item [class*="quantity"] button,
.warenkorb-item .qty button,
.warenkorb-item .quantity button,
.warenkorb-item [class*="qty"] button,
.warenkorb-item [class*="quantity"] button{
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  min-height:30px !important;
  padding:0 !important;
  border-radius:999px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Hinweisfeld sauber */
.cart-item input,
.cart-item textarea,
.warenkorb-item input,
.warenkorb-item textarea{
  width:100% !important;
  box-sizing:border-box !important;
  margin-top:8px !important;
}

/* Entfernen-Button kompakt */
.cart-item button,
.warenkorb-item button{
  box-sizing:border-box !important;
}

/* Footer im Warenkorb bleibt direkt unter Inhalt */
.cart-footer,
.warenkorb-footer,
#cartFooter,
#warenkorbFooter,
[class*="cart-footer"]{
  flex-shrink:0 !important;
  margin-top:8px !important;
  padding:12px 14px !important;
}

/* Auf sehr kleinen Displays: Warenkorb fast volle Breite */
@media(max-width:700px){
  .cart-panel,
  .cart-drawer,
  .cart-modal,
  #warenkorb,
  #cart{
    width:calc(100vw - 18px) !important;
    max-width:calc(100vw - 18px) !important;
    right:9px !important;
    left:9px !important;
    top:9px !important;
    bottom:auto !important;
    max-height:calc(100vh - 18px) !important;
  }

  .cart-items,
  #warenkorbItems,
  #cartItems,
  .cart-list,
  [class*="cart-items"],
  [class*="cart-list"]{
    max-height:calc(100vh - 230px) !important;
    padding:8px 10px 10px !important;
  }

  .cart-item,
  .warenkorb-item,
  .basket-item,
  [class*="cart-item"]{
    padding:10px !important;
  }
}



/* IndiaGate Global Scrollbar */
html, body{
  scrollbar-color:#d99a22 #2a0602;
  scrollbar-width:thin;
}

::-webkit-scrollbar{
  width:14px;
  height:14px;
}
::-webkit-scrollbar-track{
  background:#2a0602;
}
::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#d99a22,#7a3308);
  border-radius:999px;
  border:3px solid #2a0602;
}
::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#ffd35f,#a9500c);
}


/* === Checkout PLZ/Ort Felder 2026-06-07 === */
#plz, input[name="plz"],
#ort, input[name="ort"],
#adresse_full {
  box-sizing:border-box;
}
#plz, input[name="plz"]{
  max-width:160px;
}
.checkout-address-row,
.ig-address-row{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:10px;
}
@media(max-width:640px){
  .checkout-address-row,
  .ig-address-row{
    grid-template-columns:1fr;
  }
  #plz, input[name="plz"]{
    max-width:none;
  }
}


/* === Checkout Straße PLZ Ort 2026-06-07 === */
#plz, input[name="plz"],
#ort, input[name="ort"],
#strasse, input[name="strasse"],
#straße, input[name="straße"]{
  box-sizing:border-box;
}
#plz, input[name="plz"]{
  max-width:180px;
}
@media(max-width:640px){
  #plz, input[name="plz"]{
    max-width:none;
  }
}


/* === PLZ/Ort sichtbar im Kundendialog REALFIX 2026-06-07 === */
.checkout-plz-ort-row,.ig-plz-ort-row{display:grid!important;grid-template-columns:140px 1fr!important;gap:12px!important;margin-top:12px!important;width:100%!important}
.checkout-plz-ort-row label,.ig-plz-ort-row label{display:block!important;color:#ffd86b!important;font-weight:900!important;margin-bottom:6px!important}
.checkout-plz-ort-row input,.ig-plz-ort-row input{width:100%!important;box-sizing:border-box!important;min-height:42px!important}
@media(max-width:640px){.checkout-plz-ort-row,.ig-plz-ort-row{grid-template-columns:1fr!important}}

/* Kundenwunsch bis vor Auslieferung */
.change-box {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(255, 211, 107, .65);
  border-radius: 18px;
  background: rgba(54, 4, 0, .72);
}
.change-box h3 { margin: 0 0 6px; color: #ffd36b; }
.change-box p { margin: 0 0 12px; color: #f8e2b8; }
.change-box textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid #b77a22;
  border-radius: 14px;
  padding: 12px;
  background: #180000;
  color: #fff4d6;
  font: inherit;
  box-sizing: border-box;
}
.change-box button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(#ffd36b, #c98322);
  color: #260000;
  font-weight: 900;
  cursor: pointer;
}
.change-box button:disabled,
.change-box textarea:disabled { opacity: .55; cursor: not-allowed; }
.change-message { min-height: 22px; margin-top: 10px; color: #ffd36b; font-weight: 800; }