/* Site-Shell + Checkout-Schritt */
.page-konfigurator-shop .konfigurator-shop-intro {
  max-width: 1280px;
  margin: 0 auto 8px;
  padding: 0 20px;
}

.page-konfigurator-shop .konfigurator-shop-intro h1 {
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  margin: 0 0 6px;
}

.page-konfigurator-shop .konfigurator-shop-intro p {
  margin: 0;
  color: var(--color-text-muted, #6b7280);
  font-size: 0.9rem;
  line-height: 1.45;
}

.page-konfigurator-shop #inhalt {
  padding-top: 4px;
  padding-bottom: 24px;
}

.page-konfigurator-shop.checkout-screen-open .konfigurator-shop-intro,
.page-konfigurator-shop.checkout-screen-open .site-top,
.page-konfigurator-shop.checkout-screen-open .site-footer,
.page-konfigurator-shop.checkout-screen-open .cookie-banner {
  display: none;
}

.page-konfigurator-shop.checkout-screen-open #inhalt {
  padding: 0;
  max-width: none;
}

.page-konfigurator-shop.checkout-screen-open {
  overflow: hidden;
}

.btn-go-checkout {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
}

.btn-go-checkout__icon {
  flex: 0 0 auto;
}

.btn-stripe-checkout {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
}

.checkout-screen {
  display: none;
}

.checkout-screen.is-open {
  display: block;
}

.checkout-screen__panel {
  background: var(--bg, #f5f7f8);
  color: var(--text, #111827);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.checkout-screen__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #dfe4e8);
  background: #fff;
}

.checkout-screen__header h2 {
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
}

.checkout-screen__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.checkout-screen__body h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.checkout-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-summary-item {
  background: #fff;
  border: 1px solid var(--line, #dfe4e8);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.checkout-summary-item strong {
  display: block;
  margin-bottom: 4px;
}

.checkout-summary-totals {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 13px;
}

.checkout-summary-totals .checkout-summary-totals__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
}

.checkout-summary-totals .small {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
}

.checkout-summary-totals__discount {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.checkout-summary-totals__discount--promo {
  color: #86efac;
  font-weight: 700;
}

.checkout-promo {
  margin-top: 14px;
}

.checkout-promo--highlight {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 2px solid #d4941f;
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 48%, #fff7ed 100%);
  box-shadow: 0 4px 18px rgba(212, 148, 31, 0.22);
}

.checkout-promo__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.checkout-promo__badge {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4941f, #b45309);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35);
}

.checkout-promo__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  line-height: 1.25;
}

.checkout-promo__teaser {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #78350f;
}

.checkout-promo__teaser strong {
  color: #b45309;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.checkout-promo__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.checkout-promo__row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff;
  color: #111827;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.checkout-promo__row input:focus {
  outline: none;
  border-color: #d4941f;
  box-shadow: 0 0 0 3px rgba(212, 148, 31, 0.35);
}

.checkout-promo__apply {
  flex-shrink: 0;
  white-space: nowrap;
  padding-left: 16px;
  padding-right: 16px;
  min-height: 46px;
}

.checkout-promo__feedback {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.checkout-promo__feedback--success {
  color: #15803d;
}

.checkout-promo__feedback--error {
  color: #b91c1c;
}

.price-promo-hint {
  margin: 10px 0 0;
  color: #86efac;
  font-weight: 600;
}

/* Honeypot – für Bots, nicht für Kunden sichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.checkout-screen__form label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted, #6b7280);
  margin-bottom: 6px;
  font-weight: 600;
}

.checkout-screen__form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line, #dfe4e8);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--text, #111827);
}

.checkout-screen__form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-form-row {
  margin-top: 10px;
}

.checkout-screen__form > label[for="shop-note"] {
  margin-top: 10px;
}

.checkout-screen__hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted, #6b7280);
  line-height: 1.45;
}

.shop-checkout-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.shop-checkout-status--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.shop-checkout-status--info {
  background: #f0f9ff;
  color: #0c4a6e;
  border: 1px solid #bae6fd;
}

/* Desktop: Checkout auf einer Seite ohne Scrollen */
@media (min-width: 901px) {
  .page-konfigurator-shop.checkout-screen-open .checkout-screen {
    position: fixed;
    inset: 0;
    z-index: 400;
    height: 100dvh;
    overflow: hidden;
  }

  .page-konfigurator-shop.checkout-screen-open .checkout-screen__panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 0;
  }

  .page-konfigurator-shop.checkout-screen-open .checkout-screen__body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    padding: 14px 18px 18px;
    overflow: hidden;
  }

  .page-konfigurator-shop.checkout-screen-open .checkout-screen__summary,
  .page-konfigurator-shop.checkout-screen-open .checkout-screen__form {
    background: #fff;
    border: 1px solid var(--line, #dfe4e8);
    border-radius: 16px;
    padding: 14px 16px;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .page-konfigurator-shop.checkout-screen-open .checkout-summary-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .page-konfigurator-shop.checkout-screen-open .checkout-screen__form {
    justify-content: flex-start;
  }

  .page-konfigurator-shop .konfigurator-shop-intro {
    margin-bottom: 4px;
  }
}

@media (max-width: 900px) {
  .checkout-screen.is-open .checkout-screen__panel {
    min-height: 100dvh;
  }

  .checkout-screen__body {
    padding: 12px 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .checkout-screen__summary,
  .checkout-screen__form {
    background: #fff;
    border: 1px solid var(--line, #dfe4e8);
    border-radius: 16px;
    padding: 14px;
  }

  .checkout-screen__form .row {
    grid-template-columns: 1fr;
  }

  @media (max-width: 560px) {
    .checkout-screen__form .row {
      grid-template-columns: 1fr 1fr;
    }
  }
}

@media (max-width: 900px) {
  .page-konfigurator-shop .konfigurator-shop-intro {
    padding: 0 10px;
  }
}
