/* Gutscheine auf lottekeramik.berlin. Baut auf /reservieren/buchung.css auf: gleiche Schrift, Knöpfe, Felder und Karten. */

/* Kurze Zustände (geschlossen, Fehler) schieben den Fuß nach unten */
body[data-seite^="gutschein"] .seite { min-height: calc(100dvh - var(--leiste) - 120px); }

/* Kaufen: Spalte links wie beim Reservieren, auf dem Handy bleibt der Einleitungssatz stehen */
@media (max-width: 900px) { body[data-seite="gutschein"] .seitlich .lead, body[data-seite="gutschein-widerruf"] .seitlich .lead { display: block; } }
.seitlich .txt a, .schritt .txt a, .einzeln .txt a, .lead a { text-underline-offset: .2em; text-decoration-thickness: 1.5px; }

.wahlen-betrag .wahl span { min-width: 84px; }
.feld .hinweis { font-size: max(15px, .94em); opacity: .78; }
.feld-frei input { max-width: 220px; font-variant-numeric: tabular-nums; }
.zaehler { font-size: max(15px, .94em); opacity: .78; text-align: right; font-variant-numeric: tabular-nums; }

/* Vorschau = Vorderseite des PDFs: weißes Blatt, darauf die beige Karte mit Wortmarke, Wert, Name, Gruß und Tasse.
   Maße nach dem PDF (Karte 190 × 128 mm), Schriftgrößen in cqi, damit die Karte in jeder Breite gleich aussieht.
   Gleiche Karte, fest mit 50 €, auf der Startseite (Stil dort im Kopf von index.html). */
@font-face { font-family: "Quicksand"; src: url("/fonts/quicksand-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Quicksand"; src: url("/fonts/quicksand-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
.vorschau { display: grid; gap: 12px; max-width: 560px; margin: 0; }
/* Blatt wie die obere Hälfte der PDF-Seite: Papierrand wie im PDF (4,7 %), unten die gestrichelte Faltlinie */
.blatt { padding: 4.7% 4.7% 0; background: #FDFBF7; border-radius: 3px; box-shadow: 0 0 0 1px rgba(84, 70, 67, .1), 0 1px 2px rgba(84, 70, 67, .06); }
.blatt::after { content: ""; display: block; height: 0; margin-top: 4.7%; padding-bottom: 2.4%; border-top: 1px dashed rgba(84, 70, 67, .32); }
.gk {
  container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) 38%; grid-template-rows: auto 1fr auto; column-gap: 3%;
  aspect-ratio: 190 / 128; padding: 6.3% 5.4% 4.6% 6.3%; border-radius: 10px; background: #E8DDC9; color: #544643; overflow-wrap: anywhere;
}
.gk-oben { grid-column: 1; grid-row: 1; display: grid; justify-items: start; }
.gk-marke { display: block; width: 31.5cqi; height: auto; color: var(--gruen); fill: currentColor; }
.gk-titel { margin-top: 6.8cqi; font-weight: 800; font-size: 5.4cqi; line-height: 1; }
.gk-wert { margin-top: 4.6cqi; display: flex; align-items: baseline; gap: .14em; color: var(--gruen); font-weight: 800; font-size: 19.5cqi; line-height: .9; white-space: nowrap; }
.gk-wert[data-lang="mittel"] { font-size: 15cqi; }
.gk-wert[data-lang="lang"] { font-size: 12cqi; }
.gk-einheit { font-size: .56em; }
.gk-unten { grid-column: 1; grid-row: 3; display: grid; gap: 1.6cqi; padding-top: 4cqi; }
.gk-fuer { font-weight: 800; font-size: max(15px, 4.2cqi); line-height: 1.15; }
.gk-gruss { font-family: "Quicksand", ui-rounded, system-ui, sans-serif; font-weight: 500; font-size: max(12px, 2.75cqi); line-height: 1.5; white-space: pre-line; }
.gk-motto { font-weight: 800; font-size: max(11.5px, 3.8cqi); line-height: 1.15; white-space: nowrap; }
.gk-tasse { grid-column: 2; grid-row: 1 / 4; align-self: end; position: relative; isolation: isolate; }
.gk-tasse img { display: block; width: 100%; height: auto; }
/* Weicher Bodenschatten unter der Tasse wie im PDF */
.gk-tasse:not(.da)::after { display: none; }
.gk-tasse::after { content: ""; position: absolute; z-index: -1; left: 22%; right: 10%; bottom: -2.5%; height: 8%; border-radius: 50%; background: rgba(84, 70, 67, .2); filter: blur(4px); }
.vorschau figcaption { font-size: max(15px, .94em); opacity: .78; max-width: 52ch; }
/* Kaufen: Karte oben in der Spalte. Breit läuft die Spalte mit und muss ins Fenster passen, sonst wird die Karte kleiner (bei sehr flachen Fenstern läuft sie nicht mit) */
@media (max-width: 900px) { body[data-seite="gutschein"] .seitlich .lead { max-width: none; } body[data-seite="gutschein"] .seitlich .vorschau { margin-block: 10px 6px; } }
@media (min-width: 901px) {
  body[data-seite="gutschein"] .seitlich { top: calc(var(--leiste) + 24px); gap: 18px; }
  body[data-seite="gutschein"] .seitlich .vorschau { max-width: min(560px, calc((100dvh - 530px) * 1.4)); }
}
@media (min-width: 901px) and (max-height: 700px) { body[data-seite="gutschein"] .seitlich { position: static; } }

/* Zusammenfassung direkt über dem Knopf: alles offen sichtbar, nichts zum Aufklappen */
.kasse { display: grid; gap: 8px; max-width: 560px; padding: clamp(22px, 3vw, 32px); border-radius: 6px; background: var(--hell); line-height: 1.45; }
.kasse-was { font-weight: 800; font-size: 1.2rem; }
.kasse-preis { margin-top: 14px; font-weight: 700; }
.kasse-preis b { font-weight: 800; font-size: 1.5rem; }
.kasse-steuer { font-size: max(15px, .94em); opacity: .78; }
.kasse-wer { font-size: max(15px, .94em); }
.anzahl-feld { display: grid; gap: 8px; }
.feld-titel { font-weight: 700; }
.wahlen-anzahl .wahl span { min-width: 56px; }
.haken-satz { margin-top: 10px; padding-left: 38px; }
.start-hinweis { max-width: 560px; }

/* Laden und geschlossen */
.laden-zeile { font-weight: 600; }
.zu { display: grid; gap: 18px; max-width: 560px; }

/* Danke und Prüfen */
.zustand { font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; text-wrap: balance; }
.zustand:focus { outline: none; }
.ergebnis { display: grid; gap: 22px; }
.pruef-form { display: grid; gap: 16px; max-width: 560px; }
.pruef-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.pruef-zeile input { text-transform: uppercase; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .pruef-zeile { grid-template-columns: minmax(0, 1fr); } .pruef-zeile .knopf { width: 100%; } }
/* Warten auf die Zahlung: ein Balken läuft die Minute, in der die Seite nachschaut */
.warten { display: grid; gap: 12px; max-width: 520px; }
.balken { height: 4px; border-radius: 2px; background: var(--linie-g); overflow: hidden; }
.balken i { display: block; height: 100%; background: var(--gruen); transform-origin: 0 50%; transform: scaleX(0); animation: fuellen 60s linear forwards; }
@keyframes fuellen { to { transform: scaleX(1); } }
/* Prüfen: Abstand statt Linie vor „Anderen Code prüfen“; geprüfter Code als eine Zeile */
#p-ergebnis { margin-bottom: clamp(20px, 3vw, 36px); }
.code-zeile b { font-weight: 800; letter-spacing: .04em; }
.code-zeile.durch b { text-decoration: line-through; text-decoration-thickness: 2px; }
/* Danke: Karte über den Knöpfen */
#d-karte { margin-top: 4px; }

/* Widerruf */
.zwei-oder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 560px) { .zwei-oder { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .balken { display: none; }
}
/* Gutschein von SumUp (seit 30.11.2026): Bild der Karte statt PDF-Vorschau */
.sumup-karte { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(84, 70, 67, .1), 0 1px 2px rgba(84, 70, 67, .06); }
