/*
 * Fußaktiv & wellness — Gutscheinkarte
 * Nachgebaut nach der gedruckten Verwöhn-Gutschein-Karte: Schriftzug, Geschenkband, Ausfüllzeilen.
 * Wird auf der Gutscheinseite (/g/) und in der Verwaltung benutzt und lässt sich so drucken.
 */

.gutscheinseite { padding-block: 1.6rem 3rem; }
.gutscheinseite .aktionen {
  display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem;
}
.gutscheinseite .aktionen p { margin: 0; font-size: .95rem; color: var(--leise); max-width: 34rem; }

.gutscheinkarte {
  position: relative; overflow: hidden; background: var(--karte);
  border: 1px solid var(--rand); box-shadow: 0 2px 20px rgba(94, 18, 41, .08);
  display: grid; grid-template-columns: minmax(0, 1fr) 100px; min-height: 30rem;
  color: var(--tinte);
}
.gk-ornament { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; pointer-events: none; }
.gk-band { grid-column: 2; width: 100px; height: 100%; align-self: stretch; }
.gutscheinkarte .inhalt { grid-column: 1; position: relative; padding: 2.4rem 2.6rem 1.9rem; display: flex; flex-direction: column; }

.gk-marke { display: flex; align-items: baseline; gap: .75rem; }
.gk-name { font-size: 1.15rem; font-weight: 700; color: var(--wein-dunkel); letter-spacing: .01em; }
.gk-zusatz { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--leise); }
.gk-marke::after { content: ""; flex: 1 1 auto; height: 1px; background: #CBBBA8; }

.gutscheinkarte .gk-titel {
  font-family: var(--schreib); font-weight: 400; letter-spacing: 0; font-size: clamp(2.8rem, 2rem + 3vw, 3.9rem);
  line-height: 1.1; color: var(--braun); margin: 1.2rem 0 .1rem;
}
.gk-unter { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--wein); margin-bottom: 1.6rem; font-weight: 700; }

.gk-zeile { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.gk-etikett { flex: 0 0 3.4rem; font-family: var(--schreib); font-size: 1.6rem; color: var(--braun); line-height: 1; }
.gk-wert { flex: 1 1 auto; min-height: 1.9rem; border-bottom: 1px solid #CBBBA8; padding: 0 .25rem .3rem; font-size: 1.2rem; color: #3F342C; }
.gk-wert.leer { color: var(--leise); font-style: italic; font-size: .95rem; }
.gk-betrag { flex: 0 0 auto; font-size: 1.45rem; font-weight: 700; color: var(--wein-dunkel); white-space: nowrap; }
.gutscheinkarte .gk-nachricht { margin: .25rem 0 0; padding-top: .5rem; font-family: var(--schreib); font-size: 1.7rem; line-height: 1.4; color: var(--braun); white-space: pre-line; }

.gk-mitte { display: flex; gap: 1.6rem; align-items: flex-end; margin-top: auto; padding-top: 1.6rem; }
.gk-felder { flex: 1 1 auto; display: flex; gap: 1.6rem; }
.gk-feld { flex: 1 1 0; min-width: 0; }
.gk-feld .w { border-bottom: 1px solid #CBBBA8; padding-bottom: .25rem; font-size: .95rem; color: #3F342C; }
.gk-feld .w.code { font-family: "Courier New", Consolas, monospace; font-size: 1.05rem; letter-spacing: .05em; font-weight: 700; }
.gk-feld .e { margin-top: .3rem; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); }
.gk-marken { display: flex; gap: 1rem; align-items: flex-end; flex: 0 0 auto; }
.gk-foto { width: 5.8rem; height: 5.8rem; object-fit: cover; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(94, 18, 41, .18); }
.gk-qr { text-align: center; }
.gk-qr svg { display: block; width: 5.6rem; height: 5.6rem; }
.gk-qr span { display: block; margin-top: .25rem; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.gk-fuss { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; justify-content: space-between; margin-top: 1.3rem; padding-top: .8rem; border-top: 1px solid #E7DCCB; font-size: .75rem; color: var(--leise); }

.gk-stempel {
  position: absolute; top: 2.2rem; right: 1.6rem; padding: .3rem .9rem; border: 2px solid; border-radius: 3px;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-7deg); background: rgba(253, 250, 245, .85);
}
.gk-stempel--eingeloest { color: var(--leise); border-color: var(--leise); }
.gk-stempel--abgelaufen, .gk-stempel--storniert { color: var(--fehler); border-color: var(--fehler); }
.gk-stempel--teil { color: var(--wein); border-color: var(--wein); }

/* ------------------------------------------------------------ Vorlage "Wellness" */
/* Seitenverhältnis 1,48 : 1 als Mindesthöhe; wird der Inhalt länger (z. B. lange Nachricht), wächst die Karte mit. */
.gk-wellness {
  --gw-serif: Georgia, "Times New Roman", serif;
  display: block; background: #F8F3EC; min-height: 0; container-type: inline-size; padding: 1.55%;
}
.gw-zweig { position: absolute; width: 21%; height: auto; pointer-events: none; }
.gw-zweig--links { left: 2.5%; bottom: 6%; }
.gw-zweig--rechts { right: 3%; bottom: 5%; width: 17%; transform: scaleX(-1); }
.gw-schleife { position: absolute; top: 0; right: 0; width: 29%; height: auto; pointer-events: none; z-index: 2; }
.gw-rahmen {
  position: relative; min-height: calc(100cqi / 1.48 - 3.1cqi); border: 1px solid #A8907E; padding: 4.5cqi 9cqi 2.6cqi;
  display: flex; flex-direction: column; align-items: center; text-align: center; z-index: 1;
}
.gw-blatt { width: 2.6cqi; height: auto; color: var(--wein); }
.gw-marke { display: flex; flex-direction: column; align-items: center; color: var(--tinte); }
.gw-marke .gw-blatt { width: 3.2cqi; margin-bottom: .3cqi; }
.gw-name { font-family: var(--gw-serif); font-size: 4.4cqi; line-height: 1; letter-spacing: .01em; }
.gw-zusatz { font-size: 1.15cqi; letter-spacing: .35em; text-transform: uppercase; color: var(--leise); margin-top: .7cqi; }
.gutscheinkarte .gw-titel { font-family: var(--schreib); font-weight: 400; font-size: 11.5cqi; line-height: 1; color: #6B1A33; margin: 1.6cqi 0 0; letter-spacing: 0; }
.gw-trenner { display: flex; align-items: center; gap: 1.2cqi; color: #A8907E; margin: .4cqi 0 2.2cqi; }
.gw-trenner::before, .gw-trenner::after { content: ""; width: 9cqi; height: 1px; background: #C9B8A6; }
.gw-trenner .gw-blatt { color: #A8907E; width: 2.2cqi; }
.gw-fuer { display: flex; flex-direction: column; align-items: center; gap: .3cqi; }
.gw-fuer span { font-family: var(--gw-serif); font-size: 2cqi; color: var(--text); }
.gw-fuer strong { font-family: var(--gw-serif); font-weight: 400; font-size: 4.6cqi; color: #3F342C; line-height: 1.15; }
.gw-fuer strong.leer { display: block; width: 40cqi; border-bottom: 1px solid #C9B8A6; }
.gw-fuer::after { content: ""; width: 9cqi; height: 1px; background: #A8907E; margin-top: 1.6cqi; }
.gw-inhalt { font-family: var(--gw-serif); font-size: 2.9cqi; color: #3F342C; margin-top: 1.8cqi; }
.gw-wert { display: block; font-family: var(--schrift); font-size: 1.8cqi; color: var(--wein-dunkel); font-weight: 700; margin-top: .4cqi; }
.gutscheinkarte .gw-nachricht { font-family: var(--schreib); font-size: 3cqi; line-height: 1.3; color: var(--braun); margin: 1cqi 0 0; white-space: pre-line; max-width: 62cqi; }
.gw-unten { margin-top: auto; width: 100%; display: grid; grid-template-columns: 8cqi 1fr 1fr 8cqi; align-items: end; }
.gw-feld { display: flex; flex-direction: column; gap: .5cqi; padding: .4cqi 0; }
.gw-feld + .gw-feld { border-left: 1px solid #C9B8A6; }
.gw-feld span { font-family: var(--gw-serif); font-size: 1.6cqi; line-height: 2cqi; color: var(--text); }
.gw-feld strong { font-family: var(--gw-serif); font-weight: 400; font-size: 2.4cqi; line-height: 3.2cqi; color: #3F342C; }
.gw-feld strong.code { font-family: "Courier New", Consolas, monospace; font-size: 2.1cqi; letter-spacing: .04em; font-weight: 700; }
.gw-qr svg { display: block; width: 7cqi; height: 7cqi; padding: .5cqi; background: #F8F3EC; box-sizing: content-box; }
.gw-fuss { margin-top: 1.6cqi; font-size: 1.1cqi; color: var(--leise); }
.gk-wellness .gk-stempel { top: 1.4cqi; left: 1.6cqi; right: auto; }

@media print {
  .gk-wellness { border: 0; width: 100%; max-width: 273mm; }
}

.gutschein-hinweise { margin-top: 1.5rem; font-size: .9rem; line-height: 1.7; color: var(--leise); }
.gutschein-hinweise strong { color: var(--text); }
.gutschein-verlauf { margin: 1rem 0 0; padding: 0; list-style: none; font-size: .9rem; }
.gutschein-verlauf li { margin: 0 0 .25rem; }

/* ------------------------------------------------------------ Vorlage "Auszeit" */
/* Nach Fussaktiv_Gutschein.pdf (A4 quer, 842 x 595 pt). Alle Maße in cqi = 1 % der Kartenbreite, damit die Karte
   in jeder Größe (Vorschau, Bildschirm, Druck) gleich aussieht. 1 pt der Vorlage = 0,1188 cqi.
   Schriften der Vorlage: Baskerville Old Face, Gabriola, Segoe UI, Georgia (unter Windows vorhanden, sonst Ersatz). */
.gutscheinkarte.gk-auszeit {
  --ga-braun: #71503D; --ga-leise: #8B7768; --ga-wein: #831B3B; --ga-flieder: #B87BA9; --ga-linie: #CDBCA9; --ga-grund: #FCF9F4;
  --ga-titel: "Baskerville Old Face", "Libre Baskerville", Baskerville, "Book Antiqua", Georgia, serif;
  --ga-hand: Gabriola, "Segoe Script", Georgia, serif;
  --ga-text: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  display: grid; grid-template-columns: 34.45% minmax(0, 1fr); min-height: 0; aspect-ratio: 842 / 595; container-type: inline-size;
  background: var(--ga-grund); padding: 0; overflow: hidden; color: var(--ga-braun);
}
.ga-bild { position: relative; border-right: .36cqi solid var(--ga-wein); overflow: hidden; }
.ga-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ga-kasten {
  position: absolute; left: 3.2cqi; right: 3.2cqi; bottom: 3.95cqi; background: var(--ga-grund); border-radius: .3cqi;
  padding: 1.9cqi 1cqi 1.6cqi; text-align: center; display: flex; flex-direction: column; gap: .9cqi;
}
.ga-kasten em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.78cqi; line-height: 1.1; color: var(--ga-braun); }
.ga-kasten span { font-family: var(--ga-text); font-size: .89cqi; letter-spacing: .08em; text-transform: uppercase; color: var(--ga-leise); }
.ga-rechts { position: relative; padding: 3.4cqi 4.4cqi 4.6cqi 4.3cqi; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ga-marke { display: flex; flex-direction: column; align-items: center; padding-bottom: 1.1cqi; border-bottom: .06cqi solid var(--ga-linie); width: 17.3cqi; }
.ga-name { font-family: var(--ga-titel); font-size: 3.33cqi; line-height: 1.05; color: var(--ga-braun); }
.ga-zusatz { font-family: var(--ga-hand); font-size: 2.85cqi; line-height: 1; color: var(--ga-flieder); }
.gutscheinkarte .ga-titel { font-family: var(--ga-titel); font-weight: 400; font-size: 5.1cqi; line-height: 1; color: var(--ga-wein); margin: 2.7cqi 0 0; letter-spacing: 0; }
.ga-spruch { font-family: var(--ga-hand); font-size: 4.28cqi; line-height: 1.05; color: var(--ga-braun); margin-top: .6cqi; }
.ga-unter { font-family: var(--ga-text); font-size: 1.07cqi; color: var(--ga-leise); margin-top: .5cqi; }
.gutscheinkarte .ga-nachricht { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.3cqi; line-height: 1.35; color: var(--ga-braun); margin: .9cqi 0 0; white-space: pre-line; max-width: 50cqi; }
.ga-felder { width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.75cqi; row-gap: 2.1cqi; margin-top: 3.6cqi; text-align: left; }
.ga-feld { display: flex; flex-direction: column; gap: .7cqi; min-width: 0; }
.ga-breit { grid-column: 1 / -1; }
.ga-etikett { font-family: var(--ga-text); font-size: .83cqi; letter-spacing: .04em; text-transform: uppercase; color: var(--ga-leise); }
.ga-wert {
  min-height: 2.9cqi; border-bottom: .08cqi solid var(--ga-linie); background: var(--ga-grund); padding: 0 .4cqi;
  font-family: Georgia, "Times New Roman", serif; font-size: 1.55cqi; line-height: 2.9cqi; color: #3F342C; overflow-wrap: anywhere;
}
.ga-breit .ga-wert { min-height: 3.9cqi; line-height: 3.9cqi; font-size: 1.75cqi; }
.ga-code .ga-wert { font-family: "Courier New", Consolas, monospace; font-weight: 700; letter-spacing: .04em; font-size: 1.4cqi; }
.ga-hinweis { align-self: flex-start; font-family: var(--ga-text); font-size: .75cqi; color: var(--ga-leise); margin: 1.6cqi 0 1.4cqi; }
.ga-fuss { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 26.7cqi; align-items: end; column-gap: 2cqi; }
.ga-web { justify-self: start; font-family: var(--ga-text); font-size: 1.01cqi; color: var(--ga-wein); }
.ga-qr svg { display: block; width: 4.4cqi; height: 4.4cqi; }
.ga-unterschrift { border-top: .06cqi solid var(--ga-linie); padding-top: .9cqi; text-align: right; }
.ga-unterschrift span { font-family: var(--ga-text); font-size: .77cqi; letter-spacing: .04em; text-transform: uppercase; color: var(--ga-leise); }
.gk-auszeit .gk-stempel { top: 2cqi; right: 2cqi; }

@media print {
  .gk-auszeit { border: 0; width: 100%; max-width: 273mm; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 620px) {
  .gutscheinkarte { grid-template-columns: minmax(0, 1fr) 52px; min-height: 0; }
  .gk-band { width: 52px; }
  .gutscheinkarte .inhalt { padding: 1.6rem 1.3rem 1.4rem; }
  .gk-mitte { flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .gk-marken { justify-content: space-between; }
  .gk-etikett { flex-basis: 2.6rem; font-size: 1.35rem; }
  .gk-stempel { top: 1rem; right: .6rem; }
}

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff; }
  .gutscheinseite { padding: 0; }
  .gutscheinseite .aktionen, .gutschein-hinweise, .nicht-drucken { display: none !important; }
  .gutscheinkarte { border: 1px solid #D8C9B6; box-shadow: none; min-height: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]::after { content: none !important; }
}
