/* Wertgutschein-Verkauf (Trello WMxnxMnY). Farben je Mandant in kunde/<short>.css ueberschreibbar. */
:root { --gk-akzent: #1f6f8b; --gk-akzent-text: #fff; --gk-rand: #d7dbe0; --gk-text: #1d2430; --gk-leise: #5b6573; --gk-rabatt: #c0392b; --gk-hg: #fff; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--gk-hg); color: var(--gk-text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.gk { max-width: 860px; margin: 0 auto; padding: 16px; }
.gk h2 { font-size: 1.15rem; margin: 1.4em 0 .6em; }
.gk-titel { font-size: 1.4rem; margin: 0 0 .6em; }
.gk-aktion { background: #fff4e5; border: 1px solid #f5c78a; border-radius: 8px; padding: 10px 14px; margin: 0 0 8px; }
.gk-motive { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.gk-motiv { border: 2px solid var(--gk-rand); border-radius: 8px; background: #fff; padding: 4px; cursor: pointer; text-align: center; font: inherit; font-size: .85rem; color: var(--gk-text); }
.gk-bild { height: 80px; border-radius: 5px; overflow: hidden; background: #eef2f5; }
.gk-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gk-ohne { background: linear-gradient(135deg, #e3eef3, #f6efe3); }
.gk-motiv span { display: block; padding: 4px 2px 0; }
.gk-werte { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.gk-wert { position: relative; min-width: 120px; border: 2px solid var(--gk-rand); border-radius: 8px; background: #fff; padding: 10px 14px; cursor: pointer; font: inherit; color: var(--gk-text); }
.gk-wert strong { display: block; font-size: 1.2rem; }
.gk-reduziert strong { text-decoration: line-through; color: var(--gk-leise); font-size: 1rem; }
.gk-preis { display: block; font-weight: 700; color: var(--gk-rabatt); font-size: 1.15rem; }
.gk-badge { position: absolute; top: -9px; right: -6px; background: var(--gk-rabatt); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: .75rem; font-weight: 700; }
.gk-an { border-color: var(--gk-akzent); box-shadow: 0 0 0 2px var(--gk-akzent) inset; }
.gk-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gk-btn { display: inline-block; border: 0; border-radius: 6px; background: var(--gk-akzent); color: var(--gk-akzent-text); padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.gk-btn:disabled { opacity: .5; cursor: wait; }
.gk-haupt { margin-top: 12px; font-size: 1.05rem; }
.gk-korb { width: 100%; border-collapse: collapse; }
.gk-korb td { border-bottom: 1px solid var(--gk-rand); padding: 6px 4px; vertical-align: top; }
.gk-korb tfoot td { font-weight: 700; border-bottom: 0; }
.gk-korb td:first-child { white-space: nowrap; }
.gk-r { text-align: right; white-space: nowrap; }
.gk-weg { border: 0; background: none; color: var(--gk-leise); font-size: 1.2rem; cursor: pointer; }
.gk-leer { color: var(--gk-leise); }
.gk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.gk-grid label, .gk-zahlart { display: flex; flex-direction: column; font-size: .9rem; color: var(--gk-leise); }
.gk-grid input, .gk-grid select, .gk-grid textarea, .gk-zeile select { font: inherit; color: var(--gk-text); padding: 8px; border: 1px solid var(--gk-rand); border-radius: 6px; margin-top: 3px; background: #fff; }
.gk-breit { grid-column: 1 / -1; }
.gk-hp { position: absolute; left: -9999px; }
.gk-zahlart { flex-direction: row; gap: 18px; }
.gk-radio, .gk-check { color: var(--gk-text); font-size: .95rem; }
.gk-check { display: block; margin-top: 14px; }
.gk-fehler { color: var(--gk-rabatt); font-weight: 600; min-height: 1.2em; }
.gk-fertig p { margin: .5em 0; }
/* Widmung je Gutschein, Vorschau */
[hidden] { display: none !important; }
/* Akzentfarbe nur als Flaeche/Linie: als Schrift auf Weiss ist sie je Mandant oft zu hell (select: Gelb) */
.gk-zweit { background: #fff; color: var(--gk-text); box-shadow: 0 0 0 2px var(--gk-akzent) inset; }
.gk-link { border: 0; background: none; padding: 0; color: var(--gk-text); font: inherit; font-size: .9rem; text-decoration: underline; text-decoration-color: var(--gk-akzent); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.gk-hinweis { color: var(--gk-leise); font-size: .85rem; margin: .4em 0 0; }
.gk-einzeln { margin: 0 0 10px; }
.gk-korb tr.gk-widmung-zeile td { border-bottom: 1px solid var(--gk-rand); padding-top: 0; }
.gk-widmung-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 4px 0 8px; }
.gk-widmung-felder input, .gk-widmung-felder textarea { font: inherit; font-size: .9rem; padding: 6px; border: 1px solid var(--gk-rand); border-radius: 6px; width: 100%; }
.gk-widmung-felder textarea { grid-column: 1 / -1; }
.gk-widmung-felder .gk-link { grid-column: 1 / -1; justify-self: start; }
/* Anzahl im Warenkorb: - n x + (select 24.11.2026) */
.gk-menge { display: inline-flex; align-items: center; gap: 2px; }
.gk-stufe { width: 1.6em; padding: 0; line-height: 1.2; }
.gk-stufe:disabled { opacity: .3; cursor: default; }
.gk-anzahl { min-width: 2.4em; text-align: center; }
#gk-korb td:nth-child(2) { width: 100%; }
.gk-widmung-titel { grid-column: 1 / -1; margin: 0; }
.gk-newsletter { margin: 14px 0 0; font-size: .95rem; }
.gk-newsletter a { color: var(--gk-text); text-decoration-color: var(--gk-akzent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
body { position: relative; }
.gk-modal { position: absolute; top: 0; left: 0; width: 100%; min-height: 100%; background: rgba(20, 25, 35, .55); display: flex; align-items: flex-start; justify-content: center; padding: 0 16px 16px; z-index: 10; }
.gk-modal[hidden] { display: none; }
.gk-modal-box { background: #fff; border-radius: 10px; max-width: 820px; width: 100%; padding: 12px 16px 16px; margin-bottom: 16px; }
.gk-modal-kopf { display: flex; justify-content: space-between; align-items: center; }
.gk-modal-inhalt { margin-top: 8px; min-height: 120px; }
.gk-modal-inhalt img { display: block; width: 100%; height: auto; border: 1px solid var(--gk-rand); border-radius: 4px; }
.gk-modal-inhalt iframe { width: 100%; height: 70vh; border: 1px solid var(--gk-rand); border-radius: 4px; }
@media (max-width: 560px) {
  .gk-widmung-felder { grid-template-columns: 1fr; }
  .gk { padding: 12px; }
  .gk-grid { grid-template-columns: 1fr; }
  .gk-wert { min-width: 46%; }
  .gk-motive { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .gk-bild { height: 56px; }
  .gk-motiv { font-size: .75rem; }
}

.gk-fertig:focus, .gk-fehler:focus { outline: none; }
/* Abstand beim Anspringen, falls die Website eine feste Kopfleiste hat */
.gk-fertig, .gk-fehler { scroll-margin-top: 100px; scroll-margin-bottom: 40px; }
