/**
 * Gift Vouchers Connect — Checkout & Paket-Karten (Kundenwebsite).
 * Angelehnt an Tanzkurse Zürich: klar, luftig, Inter-ähnlich.
 */

.bcgv-c {
  --bcgv-ink: #363636;
  --bcgv-muted: #6b6b6b;
  --bcgv-line: #e4e4e4;
  --bcgv-bg: #f3f3f3;
  --bcgv-card: #f7f7f7;
  --bcgv-accent: #1f4e4a;
  --bcgv-accent-hover: #163b38;
  --bcgv-radius: 1rem;
  --bcgv-font: Inter, "Segoe UI", system-ui, sans-serif;
  box-sizing: border-box;
  /* Wie Bricks .brxe-container auf dieser Site */
  width: 1100px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 0 2rem;
  color: var(--bcgv-ink);
  font-family: var(--bcgv-font);
  font-size: clamp(15px, 1.6vw + 10px, 18px);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .bcgv-c {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.bcgv-c *,
.bcgv-c *::before,
.bcgv-c *::after {
  box-sizing: border-box;
}

.bcgv-c--packages {
  margin-bottom: 2.5rem;
}

.bcgv-c--checkout {
  padding: 1.25rem 1.35rem 1.75rem;
  border: 1px solid #d4d4d4;
  border-radius: 1rem;
  background: #fff;
}

.bcgv-c__title {
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.85em;
  color: #111;
}

.bcgv-c__lead {
  font-size: 1.05em;
  margin: 0 0 0.75em;
}

.bcgv-c__status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bcgv-muted);
  margin: 0 0 1em;
}

.bcgv-c__status--loading {
  color: var(--bcgv-ink);
  padding: 1rem 0.15rem 1.25rem;
}

.bcgv-c__status--error {
  color: #b91c1c;
}

.bcgv-c__status-text {
  min-width: 0;
}

.bcgv-c__spinner {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #d4d4d4;
  border-top-color: var(--bcgv-accent);
  border-radius: 50%;
  animation: bcgv-spin 0.75s linear infinite;
}

.bcgv-c__status--error .bcgv-c__spinner {
  display: none;
}

@keyframes bcgv-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcgv-c__spinner {
    animation: none;
    border-top-color: #d4d4d4;
    border-right-color: var(--bcgv-accent);
  }
}

.bcgv-c__hint {
  display: block;
  margin-top: 0.35em;
  color: var(--bcgv-muted);
  font-style: normal;
  font-size: 0.95em;
}

.bcgv-c__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Schritte */
.bcgv-c__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.bcgv-c__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.92em;
  color: var(--bcgv-muted);
  border-top: 3px solid var(--bcgv-line);
  padding-top: 0.55rem;
}

.bcgv-c__step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 999px;
  background: var(--bcgv-bg);
  font-weight: 700;
  font-size: 0.85em;
}

.bcgv-c__step.is-active,
.bcgv-c__step.is-done {
  color: var(--bcgv-ink);
  border-top-color: var(--bcgv-accent);
}

.bcgv-c__step.is-active span,
.bcgv-c__step.is-done span {
  background: var(--bcgv-accent);
  color: #fff;
}

/* Form / Panels */
.bcgv-c__form {
  display: grid;
  gap: 1rem;
}

.bcgv-c__panel-title {
  font-size: 1.22em;
  font-weight: 700;
  margin: 0 0 0.85em;
}

.bcgv-c__section {
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
}

.bcgv-c__section legend {
  font-weight: 700;
  font-size: 1em;
  margin-bottom: 0.55rem;
  padding: 0;
}

.bcgv-c__choices {
  display: grid;
  gap: 0.65rem;
}

.bcgv-c__choices--packages {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.bcgv-c__choices--designs {
  grid-template-columns: repeat(auto-fill, minmax(8.25rem, 8.75rem));
  justify-content: start;
  gap: 0.85rem;
}

.bcgv-c__choices--fulfillment {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bcgv-c__choices--packages {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.bcgv-c__choice {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.bcgv-c__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bcgv-c__choice-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bcgv-line);
  border-radius: var(--bcgv-radius);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bcgv-c__choice:has(input:checked) .bcgv-c__choice-body,
.bcgv-c__choice:has(input:focus-visible) .bcgv-c__choice-body {
  border-color: #111;
  box-shadow: 0 0 0 2px #111;
}

/* Paketwahl im Checkout = gleiche Karten wie Showcase */
.bcgv-c__choice--package .bcgv-c__choice-body {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #ececec;
  border: 1px solid transparent;
  min-height: 9.5rem;
}

.bcgv-c__choice--package:has(input:checked) .bcgv-c__choice-body {
  border-color: #111;
  box-shadow: 0 0 0 2px #111;
}

.bcgv-c__choice-media {
  position: relative;
  flex: 0 0 42%;
  max-width: 42%;
  min-height: 10rem;
  background: #dbeafe;
  overflow: hidden;
}

.bcgv-c__choice-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.bcgv-c__choice-media--focus-contain img {
  object-fit: contain;
  object-position: center center;
}

.bcgv-c__choice-media--focus-center img {
  object-fit: cover;
  object-position: center center;
}

.bcgv-c__choice-media--focus-bottom img {
  object-fit: cover;
  object-position: center 88%;
}

.bcgv-c__choice-media--focus-top img {
  object-fit: cover;
  object-position: center 18%;
}

.bcgv-c__choice-media--empty {
  background: linear-gradient(145deg, #e8eef5, #d5dce6);
}

.bcgv-c__choice-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.2rem 1.15rem;
  min-width: 0;
  background: #ececec;
}

.bcgv-c__choice--design {
  min-width: 0;
}

.bcgv-c__choice--design .bcgv-c__choice-body {
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.45rem;
  height: auto;
  min-height: 0;
  padding: 0.5rem;
  text-align: center;
  overflow: visible;
}

.bcgv-c__choice--package .bcgv-c__choice-title {
  font-size: 1.15em;
  color: #111;
}

.bcgv-c__choice--package .bcgv-c__choice-desc {
  font-size: 0.92em;
  color: #5a5a5a;
  line-height: 1.4;
  flex: 1 1 auto;
}

.bcgv-c__choice--package .bcgv-c__choice-meta {
  margin-top: 0.55rem;
  font-size: 1.15em;
  color: #111;
}

.bcgv-c__choice-title {
  font-weight: 700;
  font-size: 1em;
}

.bcgv-c__choice--design .bcgv-c__choice-title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0.1rem 0.1rem;
  font-size: 0.86em;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.bcgv-c__choice-desc {
  color: var(--bcgv-muted);
  font-size: 0.95em;
}

.bcgv-c__choice-meta {
  margin-top: auto;
  font-weight: 700;
  color: var(--bcgv-ink);
}

@media (max-width: 520px) {
  .bcgv-c__choice--package .bcgv-c__choice-body {
    flex-direction: column;
    min-height: 0;
  }

  .bcgv-c__choice-media {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

.bcgv-c__design-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: calc(var(--bcgv-radius) - 0.2rem);
  background: var(--bcgv-bg);
}

.bcgv-c__design-ph {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: calc(var(--bcgv-radius) - 0.2rem);
  background: linear-gradient(145deg, #ececec, #d8d8d8);
}

/* Paket-Showcase — Layout wie bisherige Jet-Karten */
.bcgv-c__package-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bcgv-c__package-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.bcgv-c__pkg-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ececec;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  min-height: 9.5rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.bcgv-c__pkg-card:hover,
.bcgv-c__pkg-card:focus-visible {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  outline: none;
}

.bcgv-c__pkg-card-media {
  position: relative;
  flex: 0 0 42%;
  max-width: 42%;
  min-height: 10rem;
  align-self: stretch;
  background: #dbeafe;
  overflow: hidden;
}

.bcgv-c__pkg-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.bcgv-c__pkg-card-media--focus-contain img {
  object-fit: contain;
  object-position: center center;
}

.bcgv-c__pkg-card-media--focus-center img {
  object-fit: cover;
  object-position: center center;
}

.bcgv-c__pkg-card-media--focus-bottom img {
  object-fit: cover;
  object-position: center 88%;
}

.bcgv-c__pkg-card-media--focus-top img {
  object-fit: cover;
  object-position: center 18%;
}

.bcgv-c__pkg-card-media--empty {
  background: linear-gradient(145deg, #e8eef5, #d5dce6);
}

.bcgv-c__pkg-card-body {
  flex: 1 1 auto;
  padding: 1.1rem 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #ececec;
  min-width: 0;
}

.bcgv-c__pkg-card-title {
  margin: 0;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

.bcgv-c__pkg-card-desc {
  margin: 0;
  color: #5a5a5a;
  font-size: 0.92em;
  line-height: 1.4;
  flex: 1 1 auto;
}

.bcgv-c__pkg-card-price {
  margin: 0.55rem 0 0;
  font-size: 1.15em;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.bcgv-c__pkg-card .bcgv-c__btn {
  display: none;
}

@media (max-width: 520px) {
  .bcgv-c__pkg-card {
    flex-direction: column;
    min-height: 0;
  }

  .bcgv-c__pkg-card-media {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

/* Fields — Float-Labels wie Kurs-Anmeldung */
.bcgv-c__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.15rem 0 0.85rem;
}

.bcgv-c__float {
  position: relative;
  min-width: 0;
}

.bcgv-c__float--wide {
  grid-column: 1 / -1;
}

.bcgv-c__float-input {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.22rem 0.85rem 0.38rem;
  border: 1.5px solid #e4e4e4;
  border-radius: 10px;
  background: #fafafa;
  color: #111;
  font: inherit;
  font-size: 1.05em;
  line-height: 1.3;
  appearance: none;
}

.bcgv-c__float-input:hover {
  border-color: #cfcfcf;
}

.bcgv-c__float-input:focus {
  outline: none;
  border-color: #212121;
  background: #fff;
}

.bcgv-c__float label {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  margin: 0;
  color: #737373;
  font-size: 0.98em;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 0.14s ease, transform 0.14s ease, font-size 0.14s ease, color 0.14s ease, opacity 0.14s ease;
}

.bcgv-c__float-input:focus + label {
  top: 0.42rem;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: none;
  color: #525252;
}

.bcgv-c__float-input:not(:placeholder-shown) {
  padding: 0.85rem;
}

.bcgv-c__float-input:not(:placeholder-shown) + label {
  opacity: 0;
  visibility: hidden;
}

.bcgv-c__field,
.bcgv-c__field--area {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.bcgv-c__field > span,
.bcgv-c__field--area > span {
  font-size: 1em;
  color: var(--bcgv-muted);
}

.bcgv-c__field input,
.bcgv-c__field textarea,
.bcgv-c__field--area textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid #e4e4e4;
  border-radius: 10px;
  background: #fafafa;
  font: inherit;
  color: var(--bcgv-ink);
}

.bcgv-c__field input:focus,
.bcgv-c__field textarea:focus,
.bcgv-c__field--area textarea:focus {
  outline: none;
  border-color: #212121;
  background: #fff;
}

.bcgv-c__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem;
}

.bcgv-c__row--qty {
  max-width: 10rem;
  grid-template-columns: 1fr;
}

.bcgv-c__total {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.bcgv-c__total--lg {
  font-size: 1.35em;
}

.bcgv-c__summary {
  background: var(--bcgv-card);
  border-radius: var(--bcgv-radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.bcgv-c__dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.bcgv-c__dl > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
}

.bcgv-c__dl dt {
  margin: 0;
  color: var(--bcgv-muted);
  font-weight: 500;
}

.bcgv-c__dl dd {
  margin: 0;
  font-weight: 600;
}

.bcgv-c__check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1rem 0;
  cursor: pointer;
}

.bcgv-c__legal {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}

.bcgv-c__legal p {
  margin: 0 0 0.65rem;
}

.bcgv-c__legal p:last-child {
  margin-bottom: 0;
}

.bcgv-c__legal a {
  color: #1d4ed8;
  text-decoration: underline;
}

.bcgv-c__check input {
  margin-top: 0.2em;
  width: 1.15em;
  height: 1.15em;
}

.bcgv-c__error {
  color: #8b1e1e;
  background: #fdecec;
  padding: 0.7rem 0.85rem;
  border-radius: 0.4rem;
  margin: 0 0 0.75rem;
}

.bcgv-c__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.bcgv-c__btn {
  appearance: none;
  border: 0;
  border-radius: 0.4rem;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bcgv-c__btn--primary {
  background: var(--bcgv-accent);
  color: #fff;
}

.bcgv-c__btn--primary:hover {
  background: var(--bcgv-accent-hover);
}

.bcgv-c__btn--ghost {
  background: transparent;
  color: var(--bcgv-ink);
  border: 1px solid var(--bcgv-line);
}

.bcgv-c__btn:disabled,
.bcgv-c__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.bcgv-c__admin-hint {
  padding: 0.75rem 1rem;
  background: var(--bcgv-bg);
  border: 1px solid var(--bcgv-line);
  border-radius: var(--bcgv-radius);
}

.bcgv-c--thanks {
  text-align: left;
}

.bcgv-c__order-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .bcgv-c__steps {
    grid-template-columns: 1fr 1fr;
  }

  .bcgv-c__row {
    grid-template-columns: 1fr;
  }

  .bcgv-c__grid {
    grid-template-columns: 1fr;
  }

  .bcgv-c__dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .bcgv-c__step {
    font-size: 0.85em;
  }
}
