/* ============================================================
   nytic.ch – Schutzengelspiel
   ============================================================ */
.sg-body {
  --c: #ffd166;
  --c2: #ff8fb1;
  --muted: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .09);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  background: #0b0c0a;
  margin-bottom: 0;
}
@supports (overflow: clip) { html.sg-js, html.sg-js .sg-body { overflow-x: clip; overflow-y: visible; } }
.sg-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); position: relative; z-index: 1; }
.sg-eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--c); margin: 0 0 .8rem; }
.sg-h2 { font-family: 'Thasadith', sans-serif; font-weight: 700; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; margin: 0; }

/* ---------- Hero ---------- */
.sg-hero { position: relative; overflow: hidden; padding: 110px 0 clamp(3rem, 6vw, 5rem);
  background: radial-gradient(55% 60% at 75% 50%, rgba(255, 209, 102, .12), transparent 70%), radial-gradient(40% 45% at 15% 25%, rgba(255, 143, 177, .08), transparent 70%), #0b0c0a; }
.sg-stars { position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(rgba(255, 209, 102, .5) 1px, transparent 1.4px), radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1.4px);
  background-size: 90px 90px, 53px 53px; background-position: 0 0, 30px 40px; animation: sgTwinkle 8s ease-in-out infinite alternate;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 70% at 60% 45%, #000 20%, transparent 80%); }
@keyframes sgTwinkle { to { opacity: .25; } }
.sg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.sg-back { display: inline-flex; gap: .35rem; margin-bottom: 1.4rem; font-size: .85rem; font-weight: 700; color: var(--muted) !important; text-decoration: none !important; transition: color .2s; }
.sg-back:hover { color: var(--c) !important; }
.sg-head .sg-eyebrow { display: block; }
.sg-title { font-family: 'Thasadith', sans-serif; font-weight: 700; color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 1.1rem; }
.sg-title span { background: linear-gradient(100deg, var(--c), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sg-lead { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.75; max-width: 36rem; margin: 0 0 1.4rem; }
.sg-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.sg-chips li { padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; color: #fff; background: rgba(255, 209, 102, .08); border: 1px solid rgba(255, 209, 102, .3); }

/* Geheimer Kreis */
.sg-circle { margin: 0 auto; width: min(100%, 440px); }
.sg-circle svg { display: block; width: 100%; height: auto; overflow: visible; }
.sg-halo { animation: sgHalo 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sgHalo { 50% { opacity: .6; transform: scale(1.1); } }
.sg-arc { fill: none; stroke: url(#sgArc); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .25;
  animation: sgArc 6s var(--ease) infinite; animation-delay: calc(var(--i) * 1s); }
@keyframes sgArc { 0% { stroke-dashoffset: 100; opacity: .9; } 14% { stroke-dashoffset: 0; opacity: 1; } 40% { stroke-dashoffset: 0; opacity: .35; } 100% { stroke-dashoffset: 0; opacity: .2; } }
.sg-person circle { fill: #15130e; stroke: rgba(255, 209, 102, .45); stroke-width: 2; transition: fill .3s; animation: sgPerson 6s ease infinite; animation-delay: calc(var(--i) * 1s); }
.sg-person text { fill: rgba(255, 255, 255, .7); font: 700 18px 'Thasadith', sans-serif; }
@keyframes sgPerson { 0%, 20% { fill: rgba(255, 209, 102, .28); stroke: #ffd166; } 35%, 100% { fill: #15130e; stroke: rgba(255, 209, 102, .45); } }
.sg-gift { filter: drop-shadow(0 0 16px rgba(255, 209, 102, .55)); animation: sgFloat 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
/* Engelsflügel am Geschenk: schlagen sanft um den Ansatzpunkt am Paket */
.sg-wing { transform-box: view-box; transform-origin: 151px 182px; animation: sgFlap 2.8s ease-in-out infinite; }
.sg-wing path:first-child { fill: url(#sgWing); stroke: rgba(255, 209, 102, .55); stroke-width: 1.2; stroke-linejoin: round; }
.sg-feather { fill: none; stroke: rgba(214, 160, 60, .45); stroke-width: 1.4; stroke-linecap: round; }
@keyframes sgFlap { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(9deg); } }
.sg-gift-box, .sg-gift-lid { fill: url(#sgArc); }
.sg-gift-lid { filter: brightness(1.08); }
.sg-gift-band { fill: rgba(26, 20, 8, .38); }
.sg-gift-bow { fill: none; stroke: #ffd166; stroke-width: 4; stroke-linejoin: round; }
.sg-gift-halo { fill: none; stroke: #ffd166; stroke-width: 3; animation: sgHaloRing 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sgHaloRing { 50% { transform: translateY(-4px); opacity: .7; } }
@keyframes sgFloat { 50% { transform: translateY(-6px); } }

/* ---------- Spiel ---------- */
.sg-main { background: #10120e; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sg-main-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: clamp(1rem, 2.5vw, 1.8rem); align-items: start; }
.sg-card { border-radius: 22px; padding: 1.3rem 1.35rem; color: var(--muted); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--line); }
.sg-game { position: relative; overflow: hidden; padding: clamp(1.2rem, 2.5vw, 1.8rem); }
.sg-game::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c), var(--c2)); }
.sg-game-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.2rem; }
.sg-count { font: 700 .78rem var(--mono); color: var(--c); padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 209, 102, .1); }

.sg-rows { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.sg-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr) 2.2rem; gap: .6rem; align-items: end; animation: sgRowIn .45s var(--ease); }
@keyframes sgRowIn { from { opacity: 0; transform: translateY(-6px); } }
.sg-row.is-out { opacity: 0; transform: translateX(14px); transition: opacity .25s, transform .25s; }
.sg-row-nr { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .45rem; border-radius: 50%; font: 700 .78rem var(--mono); color: #1a1408; background: linear-gradient(135deg, var(--c), var(--c2)); }
.sg-field { display: flex; flex-direction: column; gap: .3rem; margin: 0; min-width: 0; }
.sg-field span { font: 700 .62rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.sg-field input { width: 100%; padding: .75rem .9rem; border-radius: 12px; font-size: .95rem; color: #fff; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.sg-field input::placeholder { color: rgba(255, 255, 255, .28); }
.sg-field input:focus { border-color: rgba(255, 209, 102, .6); box-shadow: 0 0 0 3px rgba(255, 209, 102, .12); background: rgba(255, 255, 255, .06); }
.sg-field input.is-ok { border-color: rgba(74, 222, 128, .45); }
.sg-field input.is-bad { border-color: rgba(255, 90, 74, .6); }
.sg-remove { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .3rem; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: rgba(255, 255, 255, .5); cursor: pointer; transition: color .2s, background .2s; }
.sg-remove:hover:not(:disabled) { color: #ff8a7a; background: rgba(255, 90, 74, .1); }
.sg-remove:disabled { opacity: .25; cursor: default; }
.sg-remove svg, .sg-add svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sg-add { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1.2rem 2.6rem; padding: .5rem .9rem; border-radius: 999px; border: 1px dashed rgba(255, 209, 102, .5); background: transparent; color: var(--c); font-weight: 700; font-size: .85rem; cursor: pointer; transition: background .2s; }
.sg-add:hover:not(:disabled) { background: rgba(255, 209, 102, .08); }
.sg-add:disabled { opacity: .35; cursor: default; }
.sg-consent { position: relative; display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1.2rem; font-size: .88rem; line-height: 1.5; color: rgba(255, 255, 255, .78); cursor: pointer; }
.sg-consent input { position: absolute; opacity: 0; pointer-events: none; }
.sg-consent span { flex: none; position: relative; width: 20px; height: 20px; margin-top: .1rem; border-radius: 6px; border: 1.5px solid rgba(255, 209, 102, .55); transition: background .2s; }
.sg-consent input:checked + span { background: linear-gradient(135deg, var(--c), var(--c2)); border-color: transparent; }
.sg-consent input:checked + span::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #1a1408; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sg-consent input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
.sg-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border: 0; border-radius: 999px; font-weight: 800; font-size: 1rem; color: #1a1408; cursor: pointer;
  background: linear-gradient(120deg, var(--c), var(--c2)); box-shadow: 0 14px 36px -14px var(--c2); transition: transform .2s, box-shadow .2s, opacity .2s; }
.sg-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--c2); }
.sg-btn.is-busy { opacity: .7; pointer-events: none; }
.sg-btn.is-busy::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #1a1408; border-right-color: transparent; animation: sgSpin .7s linear infinite; }
@keyframes sgSpin { to { transform: rotate(360deg); } }
.sg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sg-alert { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 12px; font-size: .9rem; line-height: 1.5; }
.sg-alert--error { color: #ffd6cf; background: rgba(255, 90, 74, .1); border: 1px solid rgba(255, 90, 74, .35); }
.sg-alert--ok { color: #d6f5df; background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .3); }
.sg-locked { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 16px; background: rgba(255, 209, 102, .06); border: 1px solid rgba(255, 209, 102, .25); }
.sg-locked-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--c); background: rgba(255, 209, 102, .12); }
.sg-locked-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sg-locked b { display: block; color: #fff; margin-bottom: .2rem; }
.sg-locked span { font-size: .9rem; }
.sg-locked em { font-style: normal; color: var(--c); font-weight: 700; }

/* Erfolg */
.sg-done { text-align: center; padding: 1rem 0 .5rem; }
.sg-done p { max-width: 30rem; margin: .8rem auto 1.4rem; line-height: 1.65; }
.sg-done-ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 0 0 10px rgba(255, 209, 102, .1), 0 18px 40px -12px var(--c2); animation: sgPop .7s cubic-bezier(.2, 1.6, .4, 1); }
.sg-done-ico svg { width: 34px; height: 34px; fill: none; stroke: #1a1408; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: sgCheck .5s .4s ease forwards; }
@keyframes sgPop { from { transform: scale(.3); opacity: 0; } }
@keyframes sgCheck { to { stroke-dashoffset: 0; } }
.sg-sent { list-style: none; margin: 0 auto; padding: 0; max-width: 26rem; display: flex; flex-direction: column; gap: .4rem; text-align: left; }
.sg-sent li { display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); animation: sgRowIn .5s var(--ease) backwards; animation-delay: calc(.6s + var(--i) * .12s); }
.sg-sent li i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.sg-sent li span { margin-left: auto; font: 700 .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #4ade80; }

/* ---------- Seitenleiste ---------- */
.sg-side { display: flex; flex-direction: column; gap: 1rem; }
.sg-steps { list-style: none; margin: 0; padding: 0; counter-reset: sg; display: flex; flex-direction: column; gap: .8rem; }
.sg-steps li { counter-increment: sg; position: relative; padding-left: 2.3rem; display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; line-height: 1.55; }
.sg-steps li::before { content: counter(sg); position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font: 700 .75rem var(--mono); color: #1a1408; background: linear-gradient(120deg, var(--c), var(--c2)); }
.sg-steps b { color: #fff; }
.sg-safe { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .88rem; line-height: 1.55; }
.sg-safe li { position: relative; padding-left: 1.5rem; }
.sg-safe li::before { content: ''; position: absolute; left: 0; top: .3rem; width: 12px; height: 12px; border-radius: 4px; background: rgba(74, 222, 128, .18); box-shadow: inset 0 0 0 1.5px #4ade80; }

/* ---------- Responsiv ---------- */
@media (max-width: 991.98px) {
  .sg-hero-grid, .sg-main-grid { grid-template-columns: 1fr; }
  .sg-circle { width: min(100%, 340px); }
}
@media (max-width: 560px) {
  .sg-row { grid-template-columns: 1.6rem minmax(0, 1fr) 2rem; grid-template-areas: "nr name rm" "nr phone rm"; row-gap: .4rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
  .sg-row-nr { grid-area: nr; width: 1.6rem; height: 1.6rem; align-self: center; margin: 0; }
  .sg-row .sg-field:nth-of-type(1) { grid-area: name; }
  .sg-row .sg-field:nth-of-type(2) { grid-area: phone; }
  .sg-remove { grid-area: rm; align-self: center; margin: 0; width: 2rem; height: 2rem; }
  .sg-add { margin-left: 0; }
  .sg-field span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-body *, .sg-body *::before, .sg-body *::after { animation: none !important; transition: none !important; }
  .sg-arc { stroke-dashoffset: 0; opacity: .6; }
  .sg-done-ico svg { stroke-dashoffset: 0; }
}

/* ---------- Zusatztext für alle (Schalter, Zähler, SMS-Vorschau) ---------- */
.sg-extra { margin: 0 0 1.2rem; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .25s, background .25s; }
.sg-extra.is-on { border-color: rgba(255, 209, 102, .35); background: linear-gradient(180deg, rgba(255, 209, 102, .06), rgba(255, 143, 177, .025)); }
.sg-switch { position: relative; display: flex; align-items: center; gap: .8rem; margin: 0; cursor: pointer; }
.sg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sg-switch-track { flex: none; position: relative; width: 44px; height: 25px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); transition: background .25s, border-color .25s; }
.sg-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.sg-switch input:checked + .sg-switch-track { background: linear-gradient(135deg, var(--c), var(--c2)); border-color: transparent; }
.sg-switch input:checked + .sg-switch-track::after { transform: translateX(19px); }
.sg-switch input:focus-visible + .sg-switch-track { outline: 2px solid var(--c); outline-offset: 2px; }
.sg-switch-text { display: flex; flex-direction: column; line-height: 1.35; }
.sg-switch-text b { color: #fff; font-size: .95rem; }
.sg-switch-text small { color: rgba(255, 255, 255, .55); font-size: .8rem; }
.sg-extra-body { display: grid; gap: .7rem; margin-top: .9rem; }
.sg-js .sg-extra:not(.is-on) .sg-extra-body { display: none; }
.sg-js .sg-extra.is-on .sg-extra-body { animation: sgExtraIn .35s var(--ease) both; }
@keyframes sgExtraIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sg-field--extra input.is-ok { border-color: rgba(255, 209, 102, .45); }
.sg-extra-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; margin: -.2rem 0 0; font: 600 .74rem var(--mono); color: rgba(255, 255, 255, .45); }
.sg-extra-info [data-extra-left] { color: rgba(74, 222, 128, .85); transition: color .2s; }
.sg-extra-info [data-extra-left].is-knapp { color: var(--c); }
.sg-extra-info [data-extra-left].is-bad { color: #ff8a7a; }
.sg-preview { margin: .2rem 0 0; }
.sg-preview figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin-bottom: .5rem; font: 700 .62rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.sg-preview figcaption small { font-weight: 400; text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, .35); font-size: .72rem; }
.sg-phone { position: relative; display: grid; gap: .45rem; justify-items: start; padding: .9rem .95rem .75rem; border-radius: 20px; background: #15161a; border: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.sg-phone-from { font-size: .7rem; font-weight: 700; color: rgba(255, 255, 255, .4); letter-spacing: .04em; }
.sg-bubble { position: relative; max-width: 92%; margin: 0; padding: .65rem .85rem; border-radius: 16px 16px 16px 4px; background: #2a2b31; color: #f2f2f4; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; animation: sgBubble .4s var(--ease) both; }
@keyframes sgBubble { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.sg-phone-meta { font: 600 .7rem var(--mono); color: rgba(74, 222, 128, .8); }
.sg-phone-meta.is-bad { color: #ff8a7a; }
.sg-done-extra { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.sg-done-extra b { color: #fff; }
@media (max-width: 560px) { .sg-extra { padding: .8rem; } .sg-bubble { max-width: 100%; } }

/* Nach dem Absenden springt die Seite zum Ergebnis (form action="#ergebnis"), unter der schwebenden Navigation */
.sg-game { scroll-margin-top: 96px; }
