/* ============================================================
   Donauwirt Gift Widget — gift-widget.css
   Einheitliches Marken-Design (Donau-Türkis)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:root {
  --dgw-teal:      #00718d;   /* Markenfarbe */
  --dgw-teal-dark: #00424f;   /* tiefes Türkis */
  --dgw-teal-mid:  #0a8aa8;   /* helleres Türkis */
  --dgw-accent:    #5fc4dc;   /* helle Akzentlinie (Türkis-Familie) */
  --dgw-cream:     #f5fbfc;
  --dgw-shadow:    rgba(0, 66, 79, .28);
  --dgw-radius:    18px;
  --dgw-size:      200px;       /* overall scene width */
}

/* ---------- Floating wrapper ---------- */
.dgw-wrapper.dgw-floating {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 99999;
  animation: dgwSlideIn .7s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes dgwSlideIn {
  from { transform: translateY(120px) scale(.6); opacity: 0; }
  to   { transform: translateY(0)     scale(1);  opacity: 1; }
}

/* ---------- Inline wrapper ---------- */
.dgw-wrapper.dgw-inline { display: inline-block; vertical-align: middle; }

/* ---------- Close button ---------- */
.dgw-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--dgw-teal-dark);
  color: #fff;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  opacity: .6;
  transition: opacity .2s;
  padding: 0;
}
.dgw-close:hover { opacity: 1; }

/* ---------- Link ---------- */
.dgw-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 8px 24px var(--dgw-shadow));
  transition: filter .3s;
}
.dgw-link:hover { filter: drop-shadow(0 12px 32px rgba(0,66,79,.42)); }

/* ---------- Ribbon badge ---------- */
.dgw-ribbon {
  background: linear-gradient(135deg, var(--dgw-teal), var(--dgw-teal-dark));
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 5px 18px;
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(0,66,79,.25);
  white-space: nowrap;
  animation: dgwPulse 2.4s ease-in-out infinite;
}
@keyframes dgwPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}

/* ---------- 3-D Scene ---------- */
.dgw-scene {
  width:  var(--dgw-size);
  height: calc(var(--dgw-size) * .9);
  position: relative;
}

/* --- Lid --- */
.dgw-lid {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: dgwLidBounce 1.8s ease-in-out infinite;
  transform-origin: bottom center;
  z-index: 2;
}

@keyframes dgwLidBounce {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  40%     { transform: translateY(-14px) rotate(1deg); }
  60%     { transform: translateY(-10px) rotate(-1deg); }
}

/* bow (helles Türkis) */
.dgw-bow { position: relative; width: 70px; height: 38px; margin-bottom: -2px; }
.dgw-bow-loop {
  position: absolute;
  top: 0;
  width: 32px; height: 32px;
  border-radius: 50% 50% 0 50%;
  background: var(--dgw-accent);
  border: 2.5px solid var(--dgw-teal);
}
.dgw-bow-left  { left:  2px; transform: rotate(-40deg); }
.dgw-bow-right { right: 2px; transform: rotate(130deg); }
.dgw-bow-knot {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--dgw-teal);
  border: 2px solid var(--dgw-accent);
  z-index: 1;
}

/* lid body */
.dgw-lid-body {
  width: var(--dgw-size);
  height: 36px;
  background: linear-gradient(180deg, var(--dgw-teal-mid) 0%, var(--dgw-teal) 100%);
  border-radius: var(--dgw-radius) var(--dgw-radius) 0 0;
  box-shadow: inset 0 -4px 12px rgba(0,0,0,.2), 0 4px 10px rgba(0,0,0,.15);
}

/* --- Box body --- */
.dgw-box-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--dgw-size) * .52);
  background: linear-gradient(180deg, var(--dgw-teal) 0%, var(--dgw-teal-dark) 100%);
  border-radius: 0 0 var(--dgw-radius) var(--dgw-radius);
  overflow: hidden;
  box-shadow: inset 0 6px 16px rgba(0,0,0,.18);
}

.dgw-stripe {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  transform: translateX(-50%);
  width: 28px;
  background: linear-gradient(180deg, var(--dgw-accent) 0%, var(--dgw-teal-mid) 100%);
  opacity: .9;
}

/* ---------- Sparkles ---------- */
.dgw-sparkles { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.dgw-sp {
  position: absolute;
  font-size: 18px;
  color: var(--dgw-accent);
  opacity: 0;
  animation: dgwSparkle 2.4s ease-in-out infinite;
}
.sp1 { top:  -10px; left:  10px; animation-delay: 0s; }
.sp2 { top:  -14px; right:  8px; animation-delay: .5s; font-size: 13px; }
.sp3 { top:   10px; right: -12px; animation-delay: 1s; }
.sp4 { top:   -6px; left:  50%;  animation-delay: 1.5s; font-size: 11px; }

@keyframes dgwSparkle {
  0%   { opacity: 0; transform: scale(.4) translateY(0); }
  30%  { opacity: 1; }
  70%  { opacity: .6; }
  100% { opacity: 0; transform: scale(1.2) translateY(-16px); }
}

/* ---------- Label ---------- */
.dgw-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--dgw-teal-dark);
  background: var(--dgw-cream);
  padding: 7px 22px;
  border-radius: 30px;
  border: 2px solid var(--dgw-teal);
  margin: 0;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0,66,79,.12);
  transition: background .25s, color .25s;
}
.dgw-link:hover .dgw-label {
  background: var(--dgw-teal);
  color: #fff;
}

/* ---------- Accessibility: reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dgw-lid { animation: none; }
  .dgw-ribbon { animation: none; }
  .dgw-sp { animation: none; opacity: .6; }
  .dgw-wrapper.dgw-floating { animation: none; }
}
