/* ============================================================================
   Aktion „Drei goldene Umschläge“ (ab 0.33.0, Preise neu ab 0.34.0) — Modal,
   Umschläge, Abzeichen, Streifen im Buchungsformular. Alle Klassen mit Präfix gu-, Farben nur über Tokens
   am Modal selbst (kein :root, das Theme bleibt unberührt).
   ========================================================================== */
.gu-modal, .gu-toast, .gu-badge, #glattt-booking-widget .gu-strip {
  --gu-ink: #141210; --gu-ink-2: #1D1913; --gu-ink-3: #2A241B;
  --gu-cream: #FFFCF4; --gu-cream-2: #FBF5E4; --gu-text: #1A1712; --gu-text-soft: #6B6253;
  --gu-on-ink: #F6EFDD; --gu-on-ink-soft: #B8AD95; --gu-line: #EADFC4; --gu-line-ink: #3A3327;
  --gu-gold: #E1B520; --gu-gold-deep: #9A7A12; --gu-gold-soft: #F3D77A; --gu-gold-ink: #C9A227;
  --gu-mint: #BCEEE2; --gu-mint-deep: #0F6C5C;
  --gu-serif: var(--glattt-ueberschrift, "Playfair Display", Georgia, serif);
  font-family: inherit; box-sizing: border-box;
}
.gu-modal *, .gu-modal *::before, .gu-modal *::after, .gu-strip *, .gu-toast *, .gu-badge * { box-sizing: border-box; }

/* ---------- Modal ---------- */
.gu-modal { position: fixed; inset: 0; z-index: 99990; display: none; align-items: center; justify-content: center; padding: 12px; background: rgba(10, 8, 6, .82); }
.gu-modal.gu-is-open { display: flex; }
.gu-dialog { position: relative; width: min(820px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: hidden; display: flex; flex-direction: column; background: var(--gu-ink); color: var(--gu-on-ink); border-radius: 20px; border: 1px solid var(--gu-line-ink); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); animation: gu-pop .45s cubic-bezier(.2, .8, .2, 1); line-height: 1.5; font-size: 16px; }
@keyframes gu-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.gu-dialog::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; background: radial-gradient(ellipse 60% 55% at 50% 20%, rgba(225, 181, 32, .18), transparent 70%); pointer-events: none; border-radius: 20px 20px 0 0; }
.gu-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gu-line-ink); background: rgba(0, 0, 0, .3); color: var(--gu-on-ink-soft); font-size: 20px; line-height: 1; cursor: pointer; z-index: 2; padding: 0; }
.gu-close:hover { color: var(--gu-cream); border-color: var(--gu-gold-deep); }
.gu-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 30px clamp(16px, 4vw, 40px) 30px; }
.gu-stage { position: relative; }
.gu-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
.gu-head { position: relative; text-align: center; display: grid; gap: 10px; max-width: 560px; margin: 0 auto; }
.gu-eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gu-gold); display: inline-flex; align-items: center; gap: 12px; justify-content: center; }
.gu-eyebrow::before, .gu-eyebrow::after { content: ""; width: 24px; height: 1px; background: var(--gu-gold-deep); }
.gu-head h2 { font-family: var(--gu-serif); font-size: clamp(26px, 4vw, 40px); color: var(--gu-cream); font-weight: 500; line-height: 1.12; margin: 0; }
.gu-head h2 em { font-style: italic; color: var(--gu-gold-soft); }
.gu-head p { color: var(--gu-on-ink-soft); font-size: 15px; margin: 0; }
.gu-hint { position: relative; z-index: 1; text-align: center; color: var(--gu-on-ink-soft); font-size: 13px; max-width: 520px; margin: 18px auto 0; }
.gu-hint a { color: var(--gu-on-ink-soft); }
.gu-btn-text { background: none; border: 0; color: var(--gu-on-ink-soft); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.gu-btn-mint { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--gu-mint); color: var(--gu-text); font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(15, 108, 92, .6); transition: transform .2s; font-family: inherit; }
.gu-btn-mint:hover { transform: translateY(-2px); }
.gu-btn-mint svg { width: 18px; height: 18px; }
.gu-btn-ghost { border: 1px solid var(--gu-gold-ink); background: transparent; color: var(--gu-gold-deep); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; font-family: inherit; }
.gu-btn-ghost:hover { background: var(--gu-gold); color: var(--gu-text); border-color: var(--gu-gold); }

/* ---------- Gewinnkarte ---------- */
.gu-result-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s cubic-bezier(.2, .8, .2, 1); position: relative; z-index: 3; }
.gu-stage.gu-revealed .gu-result-wrap { grid-template-rows: 1fr; }
.gu-result-inner { min-height: 0; overflow: hidden; }
.gu-result { max-width: 560px; margin: 22px auto 0; background: linear-gradient(180deg, var(--gu-cream), var(--gu-cream-2)); color: var(--gu-text); border-radius: 14px; padding: 26px clamp(18px, 4vw, 34px) 22px; text-align: center; position: relative; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(225, 181, 32, .35); opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .6s .25s, transform .7s .25s cubic-bezier(.2, .8, .2, 1); }
.gu-stage.gu-revealed .gu-result { opacity: 1; transform: none; }
.gu-result::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--gu-line); border-radius: 8px; pointer-events: none; }
.gu-ribbon { display: none; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gu-ink); color: var(--gu-gold); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gu-gold-deep); white-space: nowrap; }
.gu-result.gu-is-top .gu-ribbon { display: inline-block; }
.gu-r-eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gu-gold-deep); margin: 0 0 8px; }
.gu-r-prize { font-family: var(--gu-serif); font-size: clamp(26px, 4vw, 38px); font-weight: 600; color: var(--gu-text); margin: 0; line-height: 1.12; }
.gu-r-desc { color: var(--gu-text-soft); margin: 6px 0 0; font-size: 14px; }
.gu-r-note { color: var(--gu-text-soft); margin: 8px auto 0; max-width: 440px; font-size: 13px; line-height: 1.45; }
.gu-r-code-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 18px auto 0; padding: 12px 16px; border: 1px dashed var(--gu-gold-ink); border-radius: 12px; background: rgba(255, 255, 255, .5); max-width: 400px; }
.gu-r-label { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gu-text-soft); }
.gu-r-code { font-size: 20px; letter-spacing: .08em; font-weight: 700; color: var(--gu-text); }
.gu-result .gu-btn-mint { margin-top: 18px; }
.gu-r-fine { font-size: 12.5px; color: var(--gu-text-soft); margin: 12px auto 0; max-width: 420px; }
.gu-r-others { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--gu-line); font-size: 13.5px; color: var(--gu-text-soft); }
.gu-r-others b { color: var(--gu-text); }

/* ---------- Umschläge ---------- */
.gu-envs { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: clamp(10px, 3vw, 32px); max-width: 660px; margin: 6px auto 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1), padding-top .9s cubic-bezier(.2, .8, .2, 1); transform-origin: top center; padding-top: 14%; }
.gu-stage.gu-revealed .gu-envs { margin-top: 16px; }
.gu-stage.gu-grown .gu-envs { padding-top: max(18%, 90px); }
.gu-slot { flex: 1 1 0; min-width: 0; padding-top: 0; display: grid; gap: 10px; justify-items: center; animation: gu-float 3.6s ease-in-out infinite alternate; transition: flex-grow .9s cubic-bezier(.2, .8, .2, 1); }
.gu-slot:nth-child(2) { animation-delay: -1.2s; }
.gu-slot:nth-child(3) { animation-delay: -2.4s; }
.gu-stage.gu-picked .gu-slot { animation: none; }
.gu-stage.gu-grown .gu-slot { flex-grow: .62; }
.gu-stage.gu-grown .gu-slot.gu-is-chosen { flex-grow: 2.6; }
@keyframes gu-float { from { translate: 0 0; } to { translate: 0 -6px; } }
.gu-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gu-on-ink-soft); text-align: center; min-height: 1.4em; }
.gu-label b { display: block; font-family: var(--gu-serif); font-size: clamp(12px, 1.6vw, 16px); letter-spacing: 0; text-transform: none; color: var(--gu-cream); font-weight: 500; margin-top: 3px; }
.gu-slot.gu-is-chosen .gu-label { color: var(--gu-gold); }
.gu-env { position: relative; width: 100%; aspect-ratio: 4 / 3; perspective: 1100px; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; transition: transform .55s cubic-bezier(.2, .8, .2, 1), filter .6s; -webkit-tap-highlight-color: transparent; outline-offset: 10px; container-type: inline-size; display: block; }
.gu-env:focus-visible { outline: 2px solid var(--gu-gold); border-radius: 10px; }
.gu-env > * { position: absolute; }
.gu-env:not(.gu-open):hover { transform: translateY(-4%); }
.gu-env:not(.gu-open):hover .gu-flap { transform: rotateX(22deg); }
.gu-env.gu-chosen { transform: translateY(-4%); z-index: 3; }
.gu-env.gu-other { filter: saturate(.55) brightness(.62); }
.gu-env.gu-other.gu-open { filter: saturate(.75) brightness(.8); }
.gu-back { z-index: 0; left: 0; right: 0; top: 18%; bottom: 0; border-radius: 0 0 8px 8px; background: #B48B15; box-shadow: 0 34px 50px -22px rgba(0, 0, 0, .75); }
.gu-env.gu-open .gu-back { top: calc(18% - 2px); }
.gu-card { z-index: 1; left: 7%; right: 7%; top: 22%; bottom: 6%; border-radius: 6px; background: linear-gradient(180deg, #FFFDF7 0%, #F7EFD9 100%); box-shadow: 0 8px 20px rgba(0, 0, 0, .28); transition: transform .8s cubic-bezier(.2, .8, .2, 1); display: grid; align-content: start; justify-items: center; gap: 6%; padding: 9% 6% 0; text-align: center; }
.gu-mark { width: clamp(10px, 9cqw, 52px); aspect-ratio: 1; display: grid; place-items: center; }
.gu-mark img, .gu-seal img, .gu-strip .gu-mini-seal img { width: 60%; height: 60%; object-fit: contain; display: block; }
.gu-text { font-family: var(--gu-serif); color: var(--gu-text); font-size: clamp(7px, 6.4cqw, 30px); line-height: 1.2; font-weight: 600; }
.gu-env.gu-open .gu-card { transform: translateY(-58%); transition-delay: .85s; }
.gu-env.gu-chosen.gu-open .gu-card { transform: translateY(-64%); transition-delay: .85s; }
@media (max-width: 560px) {
  .gu-stage.gu-revealed .gu-env.gu-other .gu-text { display: none; }
  .gu-stage.gu-grown .gu-slot:not(.gu-is-chosen) .gu-label { font-size: 0; letter-spacing: 0; }
  .gu-stage.gu-grown .gu-slot:not(.gu-is-chosen) .gu-label b { font-size: 10px; line-height: 1.2; margin-top: 0; }
}
.gu-pocket { z-index: 2; left: 0; right: 0; top: 18%; bottom: 0; border-radius: 0 0 8px 8px; clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%); background: linear-gradient(160deg, #F2CE52 0%, #DDB22A 42%, #C9981A 100%); overflow: hidden; }
.gu-pocket i { position: absolute; inset: 0; display: block; }
.gu-pocket .gu-fl { clip-path: polygon(0 0, 50% 58%, 0 100%); background: rgba(0, 0, 0, .08); }
.gu-pocket .gu-fr { clip-path: polygon(100% 0, 50% 58%, 100% 100%); background: rgba(255, 255, 255, .10); }
.gu-pocket .gu-fe { clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 2.5%, 50% 61%, 0 2.5%); background: rgba(0, 0, 0, .14); }
.gu-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .34) 46%, transparent 58%); background-size: 260% 100%; background-position: 160% 0; animation: gu-shine 5.2s ease-in-out infinite; }
.gu-slot:nth-child(2) .gu-shine { animation-delay: .9s; }
.gu-slot:nth-child(3) .gu-shine { animation-delay: 1.8s; }
@keyframes gu-shine { 0% { background-position: 160% 0; } 45% { background-position: -160% 0; } 100% { background-position: -160% 0; } }
.gu-flap { left: 0; right: 0; top: 18%; height: 58%; transform-origin: 50% 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.4, 0, .2, 1), z-index 0s .45s; z-index: 5; }
.gu-env.gu-open .gu-flap { transform: rotateX(180deg); z-index: 0; }
.gu-flap-front, .gu-flap-back { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; overflow: hidden; }
.gu-flap-front { background: linear-gradient(180deg, #F7DA6C 0%, #E6BE2E 55%, #D4A71E 100%); }
.gu-flap-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 40%); }
.gu-flap-back { inset: 0 0 -3px 0; transform: rotateX(180deg); background: linear-gradient(0deg, #C49A1C 0%, #B48B15 100%); clip-path: polygon(0 100%, 100% 100%, 50% 0); }
.gu-seal { position: absolute; left: 50%; top: 100%; width: 24%; aspect-ratio: 1; translate: -50% -58%; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #FFFFFF, #F3EBD5 72%); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(225, 181, 32, .6), inset 0 0 0 5px rgba(255, 255, 255, .7); backface-visibility: hidden; z-index: 6; transition: opacity .3s; }
.gu-seal::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(154, 122, 18, .5); }
.gu-env.gu-open .gu-seal { opacity: 0; }

/* ---------- Streifen im Buchungsformular ---------- */
#glattt-booking-widget #glattt-booking-form > .gu-strip { grid-column: 1 / -1; }
#glattt-booking-widget .gu-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: linear-gradient(135deg, #1A1712, #2A241B); color: var(--gu-on-ink); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--gu-gold-deep); margin: 4px 0 6px; font-size: 14px; line-height: 1.4; }
#glattt-booking-widget .gu-strip .gu-mini-seal { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(225, 181, 32, .6); color: var(--gu-mint-deep); font-weight: 700; flex: none; }
#glattt-booking-widget .gu-strip b { display: block; font-family: var(--gu-serif); font-weight: 500; font-size: 16px; color: var(--gu-cream); line-height: 1.25; }
#glattt-booking-widget .gu-strip span.gu-sub { display: block; font-size: 12.5px; color: var(--gu-on-ink-soft); }
#glattt-booking-widget .gu-strip .gu-btn-ghost { color: var(--gu-gold); border-color: var(--gu-gold-ink); white-space: nowrap; }
#glattt-booking-widget .gu-strip .gu-btn-ghost:hover { background: var(--gu-gold); color: var(--gu-text); }
#glattt-booking-widget .gu-strip.gu-won { background: var(--gu-mint); border-color: var(--gu-mint); color: var(--gu-text); }
#glattt-booking-widget .gu-strip.gu-won b { color: var(--gu-text); }
#glattt-booking-widget .gu-strip.gu-won span.gu-sub { color: var(--gu-mint-deep); }
#glattt-booking-widget .gu-strip.gu-won .gu-mini-seal { background: var(--gu-mint-deep); color: var(--gu-mint); box-shadow: none; }
@media (max-width: 560px) { #glattt-booking-widget .gu-strip { grid-template-columns: auto 1fr; } #glattt-booking-widget .gu-strip .gu-btn-ghost { grid-column: 1 / -1; } }

/* ---------- Abzeichen nach dem Spiel (jede Seite) ---------- */
.gu-badge { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 99980; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #1A1712, #2A241B); color: var(--gu-on-ink); border: 1px solid var(--gu-gold-deep); border-radius: 999px; padding: 8px 18px 8px 8px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); cursor: pointer; font: inherit; font-size: 14px; line-height: 1.3; text-align: left; max-width: calc(100% - 32px); transform: translateY(20px); opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.gu-badge.gu-show { opacity: 1; transform: none; }
.gu-badge[hidden] { display: none; }
.gu-badge .gu-mini-seal { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(225, 181, 32, .6); flex: none; }
.gu-badge .gu-mini-seal img { width: 60%; height: 60%; object-fit: contain; display: block; }
.gu-badge > div { min-width: 0; }
.gu-badge b { display: block; font-family: var(--gu-serif); font-weight: 500; font-size: 15px; color: var(--gu-cream); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gu-badge span:not(.gu-mini-seal) { font-size: 12px; color: var(--gu-on-ink-soft); white-space: nowrap; display: block; }
@media (max-width: 560px) { .gu-badge { right: max(12px, env(safe-area-inset-right, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); max-width: none; } }

/* ---------- Toast ---------- */
.gu-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--gu-ink); color: var(--gu-cream); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; opacity: 0; transition: opacity .3s, transform .3s; z-index: 99999; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.gu-toast.gu-show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .gu-slot, .gu-shine, .gu-dialog { animation: none; }
  .gu-env, .gu-flap, .gu-card, .gu-result, .gu-envs, .gu-result-wrap, .gu-slot, .gu-badge { transition-duration: .01s; transition-delay: 0s; }
}
