/* adMates-Farben: hier anpassen, falls ihr exakte Werte habt */
:root {
  --night: #0b1736;        /* Navy */
  --night-glow: #1c3a7a;
  --blue: #3d8df2;         /* adMates-Blau */
  --blue-deep: #1d64d8;
  --lime: #c6f04d;         /* CTA-Lime */
  --lime-dark: #93b82a;
  --paper: #ffffff;
  --paper-dark: #e3eaf5;
  --ink: #0b1736;
  --muted: #64748b;
  --berry: #d92d3a;
  --pine: #0b1736;
  --gold: var(--lime);
  --field: #f5f8fc;
  --line: #d5deeb;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  font: 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(120% 70% at 50% -10%, var(--night-glow), transparent 70%),
    var(--night);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px 120px;
  align-items: start;
  overflow-x: hidden;
}

/* Falling snow (canvas from snow.js) and a snowbank at the bottom */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::after {
  content: "";
  position: fixed;
  left: -10%; right: -10%; bottom: -1px;
  height: 90px;
  background:
    radial-gradient(60% 100% at 20% 100%, #f4f7f6 60%, transparent 61%),
    radial-gradient(55% 90% at 75% 100%, #e6eeeb 60%, transparent 61%);
  pointer-events: none;
  z-index: 0;
}

/* Logo on top, tag hanging from it */
.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 76px;
}
.logo { height: 38px; width: auto; display: block; }

/* The hanging gift tag */
.hang {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  display: flex;
  justify-content: center;
}
.hang.wide { width: min(100%, 640px); }
.twine {
  position: absolute;
  top: -72px; left: 50%;
  width: 3px; height: 108px;
  margin-left: -1.5px;
  background: repeating-linear-gradient(170deg, var(--lime) 0 6px, #fff 6px 11px);
  transform: rotate(7deg);
  transform-origin: bottom;
  border-radius: 2px;
}
.tag {
  position: relative;
  width: 100%;
  background: var(--paper);
  padding: 88px 36px 36px;
  border-radius: 4px;
  clip-path: polygon(0 40px, 40px 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  box-shadow: inset 0 -6px 0 var(--paper-dark);
}
.tag::before { /* brass eyelet */
  content: "";
  position: absolute;
  top: 28px; left: 50%;
  width: 18px; height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 4px var(--gold);
}
.holly {
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: 64px;
}

h1, .giftee {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}
h1 { font-size: 32px; color: var(--ink); }
.giftee {
  font-size: clamp(44px, 12vw, 66px);
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 4px 0 20px;
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.reveal-in { animation: unwrap 700ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes unwrap {
  from { opacity: 0; transform: translateY(14px) scale(.94) rotate(-2deg); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal-in { animation: none; } }

p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); margin-top: 24px; }
.note {
  border-left: 3px solid var(--blue);
  padding: 2px 0 2px 14px;
  margin: 0 0 24px;
}

/* Controls */
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
  font: inherit;
  font-weight: 700;
  padding: 13px 26px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--lime-dark);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lime-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--pine); box-shadow: inset 0 0 0 2px var(--pine); }
.btn.small-btn { padding: 7px 14px; font-size: 14px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

label { display: block; font-weight: 600; margin: 18px 0 6px; }
label .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}
textarea { min-height: 180px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { accent-color: var(--blue); width: 18px; height: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.error { color: var(--berry); font-weight: 600; margin-top: 16px; }

.links { list-style: none; padding: 0; margin: 20px 0 0; }
.links li {
  display: grid;
  grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.links .who { font-weight: 600; overflow-wrap: anywhere; }
.links input { font-size: 13px; padding: 6px 8px; }

@media (max-width: 520px) {
  .tag { padding: 84px 22px 28px; }
  .links li { grid-template-columns: 1fr auto; }
  .links input { grid-column: 1 / -1; grid-row: 2; }
}
