/* Gutscheine: Kaufbereich oben im Shop, Warenkorbzeilen, Einlösefeld und Downloadseite. */

.voucher-shop {
  --voucher-heading: "Ruritania", "UnifrakturMaguntia", "Old English Text MT", "Goudy Text MT", Georgia, serif;
  --voucher-script: "Monotype Corsiva", "Apple Chancery", "URW Chancery L", "Palatino Linotype", Georgia, serif;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(18px, 3vw, 34px);
  margin: 0 0 32px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(68, 52, 33, 0.15);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 244, 184, 0.9), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 239, 199, 0.72));
  box-shadow: 0 22px 58px rgba(80, 62, 37, 0.1);
}

.voucher-shop h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.voucher-shop-lead {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.voucher-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.voucher-type-tabs button,
.voucher-amounts button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--leaf);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.voucher-type-tabs button[aria-pressed="true"],
.voucher-amounts button[aria-pressed="true"] {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}

.voucher-form {
  display: grid;
  gap: 16px;
}

.voucher-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.voucher-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.voucher-amount-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.voucher-amount-custom input {
  width: 4.6em;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: right;
}

.voucher-amount-custom input:focus {
  outline: none;
}

.voucher-form textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.voucher-form .shop-field small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.voucher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.voucher-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.voucher-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--leaf);
  font-weight: 700;
}

.voucher-status[data-tone="error"] {
  color: #8b2f28;
}

.voucher-fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Vorschau im Stil der gedruckten Gutscheine */
.voucher-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  aspect-ratio: 210 / 297;
  width: min(100%, 380px);
  margin: 0 auto;
  padding: 8% 7% 6%;
  border: 1px solid rgba(68, 52, 33, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #111;
  text-align: center;
  box-shadow: 0 20px 48px rgba(61, 45, 25, 0.18);
  overflow: hidden;
}

.voucher-preview-heading {
  font-family: var(--voucher-heading);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.voucher-preview-number {
  align-self: flex-end;
  margin-right: 12%;
  font-family: var(--voucher-script);
  font-style: italic;
  font-size: 0.82rem;
}

.voucher-preview-intro,
.voucher-preview-purpose,
.voucher-preview-details,
.voucher-preview-for,
.voucher-preview-conditions,
.voucher-preview-address {
  font-family: var(--voucher-script);
  font-style: italic;
}

.voucher-preview-intro {
  font-size: 1rem;
}

.voucher-preview-value {
  font-family: var(--voucher-script);
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 3.1rem);
  line-height: 1.05;
  white-space: pre-line;
}

.voucher-preview.is-special .voucher-preview-value {
  font-size: clamp(1.6rem, 4.2vw, 2.2rem);
}

.voucher-preview-purpose,
.voucher-preview-details,
.voucher-preview-for {
  font-size: 0.98rem;
  white-space: pre-line;
}

.voucher-preview-conditions {
  max-width: 78%;
  font-size: 0.72rem;
  line-height: 1.35;
}

.voucher-preview-logo {
  width: 46%;
  margin-top: auto;
}

.voucher-preview-address {
  font-size: 0.78rem;
  line-height: 1.3;
}

.voucher-preview-address span {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.6rem;
}

/* Warenkorb */
.cart-voucher-redeem {
  display: grid;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 14px;
  border: 1px dashed rgba(49, 91, 73, 0.35);
  border-radius: 14px;
  background: rgba(233, 239, 199, 0.35);
}

.cart-voucher-redeem form {
  display: flex;
  gap: 8px;
}

.cart-voucher-redeem input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-voucher-redeem ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-voucher-redeem li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
}

.cart-voucher-redeem li small {
  display: block;
  color: var(--muted);
}

.cart-voucher-redeem li.is-error small {
  color: #8b2f28;
}

.cart-voucher-redeem li button {
  border: 0;
  background: transparent;
  color: #8b2f28;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cart-voucher-redeem-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.combined-voucher-row strong {
  color: var(--leaf);
}

.voucher-free-checkout {
  display: grid;
  gap: 10px;
}

.voucher-free-checkout label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.voucher-free-checkout input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.cart-page-thumb.is-voucher {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff8e8, #e9f1d0);
  color: var(--leaf);
  font-family: var(--font-serif);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 860px) {
  .voucher-shop {
    grid-template-columns: 1fr;
  }

  .voucher-preview {
    width: min(100%, 320px);
  }
}

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

/* Downloadseite gutschein.php */
.voucher-download-page {
  margin: 0;
  background: #f8f1e3;
  color: #2c2318;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.voucher-download-wrap {
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.voucher-download-wrap .kicker {
  margin: 0 0 8px;
  color: #315c36;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.voucher-download-wrap h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.voucher-download-wrap .lead {
  max-width: 720px;
  line-height: 1.6;
  color: #5c4a36;
}

.voucher-download-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.voucher-download-wrap .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #315c36;
  border-radius: 999px;
  background: #315c36;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 750;
}

.voucher-download-wrap .btn.secondary {
  background: #fff;
  color: #315c36;
}

.voucher-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.voucher-download-card {
  overflow: hidden;
  border: 1px solid #d4c3a8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(61, 45, 25, 0.08);
}

.voucher-mini {
  display: grid;
  gap: 6px;
  padding: 26px 18px;
  background: linear-gradient(135deg, #fff8e8, #e9f1d0);
  text-align: center;
}

.voucher-mini-heading {
  font-family: "Ruritania", "Old English Text MT", Georgia, serif;
  font-size: 1.7rem;
}

.voucher-mini-value {
  font-family: "Monotype Corsiva", "Apple Chancery", Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  white-space: pre-line;
}

.voucher-mini-purpose {
  color: #5c4a36;
}

.voucher-download-copy {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.voucher-download-copy span {
  color: #6f6254;
}

.voucher-download-notice {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #d4c3a8;
  border-radius: 14px;
  background: #fff;
  color: #5c4a36;
  line-height: 1.55;
}

/* Aufklappbarer Konfigurator im bestehenden Oxymel-Kartenstil. */
.voucher-disclosure > .voucher-shop {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.voucher-disclosure .voucher-shop-lead { margin-top: 0; }
.voucher-disclosure [data-voucher-event-note] { margin-top: 10px; }
.voucher-disclosure .voucher-amount-custom input { width: 6em; }
.voucher-disclosure .voucher-preview { --voucher-heading: "Ruritania", Georgia, serif; }
