/* Gutscheine (Klick-Entwurf „Gutschein-Konfigurator“, Eddy 19.11.2026)
 * 1. Karte .gk in zwei Stilen: C „Sofortbild“ (.gk-c) und B „Briefkarte“ (.gk-b). Markup aus hhs_voucher_card_html() (inc/domain/voucher-card.php)
 *    und main.js (Gutschein-Konfigurator). Container-Einheiten: die Karte ist 1000 × 524 im Entwurf, 1 cqw = 10 px des Entwurfs.
 *    Der Container (.gk-blatt, .gks-vorschau) gibt die Breite vor, die Karte skaliert mit.
 * 2. Blatt eines Gutscheins .gk-seite (/gutschein/<nummer>-<code>/): Leiste, Hinweis, Karte; Druck A5 quer.
 * 3. Konfigurator .gks auf /gutscheine/ (1 Leistung · 2 Design · 3 Angaben & Bezahlen · fertig).
 * Die Gutschein-Kachel auf den Dienstleistungsseiten (.gkc) steht in site.css. */

/* ---------- 1. Karte ---------- */
.gk{position:relative;width:100%;aspect-ratio:1000/524;border-radius:2.8cqw;overflow:hidden;font-family:Montserrat,'Helvetica Neue',Arial,sans-serif;font-weight:300;color:#36302c;box-shadow:0 4cqw 8cqw -4cqw rgba(54,48,44,.7);text-align:left;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.gk *,.gk *::before,.gk *::after{box-sizing:border-box}
.gk h3,.gk p{margin:0}
.gk-hand{font-family:Caveat,'Bradley Hand',cursive;font-weight:600}
.gk-qr{flex:none;background:#ffffff}
.gk-qr:not([data-qr]){background:#ffffff repeating-conic-gradient(#e4e8ef 0 25%,#ffffff 0 50%) 0 0/1.4cqw 1.4cqw} /* Vorschau vor dem Kauf: der echte Code kommt nach dem Bezahlen */
.gk-qr img,.gk-qr canvas{display:block;width:100%!important;height:auto!important}

/* C „Sofortbild“: Schiefer, Foto wie ein Polaroid mit Klebeband */
.gk-c{display:grid;grid-template-columns:45cqw minmax(0,1fr);align-items:center;background:#3f4458}
.gk-pfoten{position:absolute;inset:0;width:100%;height:100%;opacity:.07;pointer-events:none}
.gk-sofort{position:relative;justify-self:center;transform:rotate(-5deg)}
.gk-band{position:absolute;left:50%;top:-1.8cqw;z-index:2;width:12cqw;height:3.4cqw;margin-left:-6cqw;transform:rotate(3deg);background:rgba(248,234,220,.82);box-shadow:0 .2cqw .4cqw rgba(0,0,0,.12)}
.gk-rahmen{position:relative;width:31.8cqw;padding:1.8cqw 1.8cqw 7.8cqw;background:#fdfbf7;border-radius:.4cqw;box-shadow:0 .2cqw 0 rgba(0,0,0,.05),0 2.6cqw 4cqw -1.4cqw rgba(0,0,0,.55),0 6cqw 8cqw -4cqw rgba(0,0,0,.45)}
.gk-foto{position:relative;width:28.2cqw;height:30cqw;overflow:hidden;background:#2b2e3a}
.gk-foto img,.gk-bogen img{display:block;width:100%;height:100%;object-fit:cover}
.gk-foto::before{content:'';position:absolute;inset:0;box-shadow:inset 0 0 0 .1cqw rgba(0,0,0,.18),inset 0 0 4cqw rgba(0,0,0,.18)}
.gk-foto::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.16) 0%,rgba(255,255,255,0) 40%)}
.gk-fuer{position:absolute;left:0;right:0;bottom:2cqw;padding:0 1.6cqw;text-align:center;font-size:3.4cqw;line-height:1.1;color:#36302c;transform:rotate(-1.5deg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gk-c .gk-text{position:relative;display:flex;flex-direction:column;gap:1.4cqw;min-width:0;padding:4.4cqw 5.6cqw 4.4cqw 1.6cqw;color:#ffffff}
.gk-marke{display:flex;align-items:center;gap:1.2cqw}
.gk-marke span{font-size:1.3cqw;letter-spacing:.22em;text-transform:uppercase;font-weight:600;color:#c9d2e0}
.gk-c .gk-logo{width:5.2cqw;height:5.2cqw;padding:.5cqw;border-radius:1.4cqw;background:#f8eadc;object-fit:contain}
.gk-c h3{margin-top:.6cqw;font-size:5.6cqw;font-weight:500;line-height:1;letter-spacing:-.01em;color:#ffffff}
.gk-sub{font-size:1.6cqw;line-height:1.35;color:#e6e9f0}
.gk-c .gk-gruss{margin-top:1cqw;font-size:3.2cqw;line-height:1.12;color:#f8eadc;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.gk-c .gk-gruss:empty{display:none}
.gk-code{display:flex;align-items:center;gap:1.8cqw;margin-top:1.4cqw;padding:1.4cqw 1.6cqw;border-radius:1.6cqw;background:#f8eadc;color:#36302c;font-size:1.2cqw;line-height:1.5}
.gk-code b{display:block;font-size:1.6cqw;font-weight:600;letter-spacing:.04em;color:#3f4458}
.gk-c .gk-qr{width:7cqw;height:7cqw;border:.4cqw solid #ffffff;border-radius:.8cqw}

/* B „Briefkarte“: Sand, Foto im Bogen, Abriss in Schiefer mit QR-Code */
.gk-b{display:grid;grid-template-columns:minmax(0,1fr) 23cqw;background:#f8eadc}
.gk-links{display:grid;grid-template-columns:30cqw minmax(0,1fr);gap:4cqw;align-items:center;min-width:0;padding:4cqw 4.4cqw}
.gk-bogen{width:30cqw;height:42cqw;border-radius:15cqw 15cqw 2.2cqw 2.2cqw;overflow:hidden;background:#e3d7c9;box-shadow:0 2cqw 4cqw -2.4cqw rgba(54,48,44,.8)}
.gk-b .gk-text{display:flex;flex-direction:column;gap:1.4cqw;min-width:0}
.gk-b .gk-logo{width:5.8cqw;height:5.8cqw;object-fit:contain}
.gk-ueber{font-size:1.2cqw;letter-spacing:.24em;text-transform:uppercase;font-weight:600;color:#6f84a2}
.gk-b h3{font-size:5.2cqw;font-weight:300;line-height:1;color:#3f4458}
.gk-welle{width:12cqw;height:1.4cqw}
.gk-wer{font-size:1.5cqw;line-height:1.5}
.gk-b .gk-gruss{font-size:2.8cqw;line-height:1.15;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
.gk-abriss{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:4cqw 2.6cqw;background:#3f4458;color:#ffffff;text-align:center;border-left:.3cqw dashed rgba(248,234,220,.55)}
.gk-abriss .gk-ueber{letter-spacing:.22em;color:#c9d2e0}
.gk-b .gk-qr{width:12.8cqw;height:12.8cqw;border:.8cqw solid #ffffff;border-radius:1.4cqw}
.gk-codetext{display:flex;flex-direction:column;gap:.6cqw;font-size:1.2cqw;line-height:1.5}
.gk-codetext b{font-size:1.8cqw;font-weight:600;line-height:1.25;letter-spacing:.06em}
.gk-klein{font-size:1.1cqw;line-height:1.5;color:#c9d2e0}

/* ---------- 2. Blatt eines Gutscheins ---------- */
.gk-seite{max-width:1080px;margin:0 auto;padding:24px 16px 56px;display:grid;gap:20px}
.gk-leiste{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.gk-hinweis{margin:0;padding:12px 16px;border-radius:14px;background:#fff4d6;color:#5c4400;font-size:14px}
.gk-blatt{container-type:inline-size}
@page{size:A5 landscape;margin:8mm}
@media print{
  html,body{background:#ffffff!important;margin:0!important;padding:0!important}
  body:has(.gk-blatt) *{visibility:hidden!important}
  .gk-blatt .gk,.gk-blatt .gk *{visibility:visible!important}
  .gk-seite{max-width:none;padding:0}
  .gk-blatt .gk{position:fixed;left:0;top:0;box-shadow:none}
  .no-print{display:none!important}
}

/* ---------- 3. Konfigurator /gutscheine/ ---------- */
.gks-sec{padding-top:clamp(24px,3vw,40px)}
.gks{display:flex;flex-direction:column;gap:24px;color:#000000}
.gks-kopf{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:20px 24px}
.gks-titel{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.gks-chip{display:inline-flex;align-items:center;padding:6px 14px;border-radius:999px;background:rgba(63,68,88,.08);color:#3f4458;font-size:13px;font-weight:600;line-height:1.3}
.gks-titel h1{margin:0;font-size:clamp(30px,3vw,40px);font-weight:500;line-height:1.1;letter-spacing:-.01em}
.gks-schritte{list-style:none;margin:0;padding:6px;display:flex;gap:6px;background:#ffffff;border-radius:999px}
.gks-schritt{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 18px 0 8px;border:0;border-radius:999px;background:transparent;color:#8a837c;font:600 14px Montserrat,'Helvetica Neue',Arial,sans-serif;cursor:default}
.gks-schritt i{width:28px;height:28px;flex:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#f3e7da;color:#6b655f;font-style:normal;font-size:13px}
.gks-schritt.fertig{background:#eef1f6;color:#3f4458;cursor:pointer}
.gks-schritt.fertig i{background:#3f4458;color:#ffffff}
.gks-schritt[aria-current="step"]{background:#3f4458;color:#ffffff}
.gks-schritt[aria-current="step"] i{background:#ffffff;color:#3f4458}
.gks-schritt:focus-visible,.gks-ang:focus-visible,.gks-stil:focus-visible,.gks-motiv:focus-visible{outline:2px solid #3f4458;outline-offset:3px}
.gks [hidden]{display:none!important}
.gks-balken{display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 6px;width:100%}
.gks-balken span{height:6px;border-radius:3px;background:#e3d7c9}
.gks-balken span.an{background:#3f4458}
.gks-balken b{grid-column:1/-1;margin-top:2px;font-size:13px;font-weight:600;color:#3f4458}
.gks-handy-preis{display:none;margin-left:-10px}
.gks-aktionen .gks-fehler{flex-basis:100%}
.gks-h{margin:0;font-size:22px;font-weight:600;line-height:1.3}
.gks-satz{margin:0;font-size:15px;line-height:1.6;color:#333333}
.gks-schritt-1{display:flex;flex-direction:column;gap:20px}
.gks-angebote{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.gks-ang{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:center;padding:14px;border:1.5px solid #f3e7da;border-radius:22px;background:#ffffff;color:#000000;text-align:left;font-family:Montserrat,'Helvetica Neue',Arial,sans-serif;cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}
@media (hover:hover){.gks-ang:hover{border-color:#8fa3be;box-shadow:0 18px 30px -24px rgba(54,48,44,.6);transform:translateY(-2px)}}
.gks-ang img{width:120px;height:120px;border-radius:16px;object-fit:cover;display:block}
.gks-ang-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.gks-ang-text b{font-size:18px;font-weight:600;line-height:1.3}
.gks-ang-text small{font-size:14px;line-height:1.4;color:#333333}
.gks-ang-fuss{margin-top:8px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
.gks-ang-fuss .gks-preis{font-size:20px}
.gks-gestalten{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:10px;background:#3f4458;color:#ffffff;font-family:Heebo,'Helvetica Neue',Arial,sans-serif;font-size:14px;font-weight:400}

.gks-karte{display:flex;flex-direction:column;gap:16px;padding:22px 24px;border-radius:22px;background:#ffffff}
.gks-karte h2{margin:0;font-size:18px;font-weight:600;line-height:1.3}
.gks-schritt-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,640px);grid-template-rows:auto 1fr;gap:20px 32px;align-items:start}
.gks-felder{grid-column:1;grid-row:1/3;display:flex;flex-direction:column;gap:16px;min-width:0}
.gks-vorschau-box{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:16px;min-width:0}
.gks-schritt-2>.gks-aktionen{grid-column:2;grid-row:2}
.gks-label{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#6b655f}
.gks-vorschau{container-type:inline-size;width:100%}
.gks-stile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gks-stil{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:64px;padding:10px 16px;border:1.5px solid #f3e7da;border-radius:14px;background:#faf6f1;color:#000000;text-align:left;font-family:Montserrat,'Helvetica Neue',Arial,sans-serif;cursor:pointer}
.gks-stil b{font-size:15px;font-weight:600}
.gks-stil small{font-size:12px;line-height:1.4;opacity:.8}
.gks-stil[aria-pressed="true"]{background:#3f4458;border-color:#3f4458;color:#ffffff}
.gks-motive{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.gks-motiv{aspect-ratio:1;padding:2px;border:3px solid transparent;border-radius:12px;background:#ffffff;cursor:pointer}
.gks-motiv img{width:100%;height:100%;object-fit:cover;display:block;border-radius:9px}
.gks-motiv[aria-pressed="true"]{border-color:#3f4458}
.gks-eigen{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px dashed #8fa3be;background:#faf6f1;color:#3f4458;font-family:Montserrat,'Helvetica Neue',Arial,sans-serif}
.gks-eigen b{font-size:12px;font-weight:600;line-height:1.2;text-align:center}
.gks-eigen[aria-pressed="true"]{border:3px solid #3f4458;background:#eef1f6}
.gks-eigen-box{display:flex;flex-direction:column;gap:14px;padding:16px;border-radius:16px;background:#faf6f1}
.gks-datei{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:64px;padding:8px 16px;border:1.5px dashed #8fa3be;border-radius:14px;background:#ffffff;color:#3f4458;font:500 14px Montserrat,'Helvetica Neue',Arial,sans-serif;text-align:center;cursor:pointer}
.gks-datei input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.gks-datei:focus-within{outline:2px solid #3f4458;outline-offset:3px}
.gks-datei.laedt{cursor:progress;opacity:.8}
.gks-datei.laedt svg{animation:hhsLogo 1s linear infinite}
.gks-zwei{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gks-drei{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.4fr);gap:14px}
.gks-zaehler{display:flex;justify-content:space-between;gap:12px}
.gks-zaehler small{font-weight:400;color:#6b655f;font-variant-numeric:tabular-nums}
.gks .fm-f textarea{resize:none}
.gks .fm-cons input{width:22px;height:22px;margin:0}
.gks-aktionen{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.gks-fehler{margin:0;padding:12px 16px;border-radius:14px;background:#fbe9e7;color:#8a2a1d;font-size:14px;line-height:1.5}
.gks-fehler[hidden]{display:none}
.gks-hinweis{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;background:#faf6f1;font-size:13px;line-height:1.5;color:#333333}
.gks-hinweis svg{flex:none;color:#3f4458}
.gks-hinweis a{color:#3f4458;font-weight:600}

.gks-schritt-3{display:grid;grid-template-columns:minmax(0,1fr) 460px;grid-template-rows:auto 1fr;gap:0 32px;align-items:start}
.gks-angaben{grid-column:1;grid-row:1/3}
.gks-wahl{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:14px;padding:22px 22px 0;border-radius:22px 22px 0 0;background:#ffffff}
.gks-wahl-text{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.gks-wahl-text b{display:none;font-size:15px;font-weight:600}
.gks-kasse{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:14px;padding:14px 22px 22px;border-radius:0 0 22px 22px;background:#ffffff}
.gks-summe{display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px solid #f3e7da;font-size:14px}
.gks-summe span{display:flex;justify-content:space-between;gap:12px}
.gks-summe .gks-steuer{color:#6b655f}
.gks-summe .gks-gesamt{padding-top:6px;font-size:20px;font-weight:600}
.gks-kasse .btn{width:100%}
.gks-kasse small{font-size:12px;line-height:1.5;color:#6b655f}

.gks-fertig{margin:0 auto;width:100%;max-width:820px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.gks-ok{width:72px;height:72px;border-radius:50%;background:#e3f1e8;color:#1f6b3f;display:flex;align-items:center;justify-content:center}
.gks-fertig h2{margin:0;font-size:clamp(26px,2.6vw,34px);font-weight:500}
.gks-fertig p{margin:0;font-size:16px;line-height:1.6;color:#333333}
.gks-fertig .gks-vorschau{max-width:760px}
.gks-knoepfe{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}

/* Laden = Skelett (bis die Daten da sind) */
.gks-sk{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.gks-sk i{display:block;height:148px;border-radius:22px;background:linear-gradient(90deg,#ffffff 0%,#fbf4ec 50%,#ffffff 100%) 0 0/200% 100%;animation:gksSchimmer 1.4s ease-in-out infinite}
.gks-sk-gross i{height:398px;grid-column:1/-1}
@keyframes gksSchimmer{from{background-position:100% 0}to{background-position:-100% 0}}
@media (prefers-reduced-motion:reduce){.gks-sk i{animation:none}}
.bx.a-nm .gks-sk i{animation:none}

@media (max-width:1200px){
  .gks-angebote{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gks-schritt-2{grid-template-columns:minmax(0,1fr) minmax(0,480px)}
  .gks-schritt-3{grid-template-columns:minmax(0,1fr) 400px}
}
@media (max-width:900px){
  .gks-angebote{grid-template-columns:minmax(0,1fr)}
  .gks-schritt-2,.gks-schritt-3{display:flex;flex-direction:column;align-items:stretch;gap:16px}
  .gks-schritt-2>*,.gks-schritt-3>*{min-width:0}
  .gks-vorschau-box{order:-1;width:100%;max-width:640px}
  .gks-wahl,.gks-kasse{border-radius:22px;padding:22px}
  .gks-sk{grid-template-columns:minmax(0,1fr)}
}
