:root {
  /* page (always a winter night) */
  --night-1: #0b1626;
  --night-2: #15294a;
  --night-3: #23406b;
  --on-night: #eef3fb;
  --on-night-muted: #a9b9d3;

  /* cards */
  --card: #fffdf9;
  --field: #f6f1ea;
  --text: #2b2420;
  --muted: #7a6e66;
  --border: #ebe2d6;
  --red: #c0352b;
  --red-hover: #a12a21;
  --green: #1e7a4f;
  --gold: #e3b23c;
  --highlight: #fff5dc;
  --shadow: 0 2px 4px rgb(0 0 0 / .15), 0 12px 32px rgb(0 0 0 / .25);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --card: #1d2433;
    --field: #141a26;
    --text: #eef1f6;
    --muted: #9aa6b8;
    --border: #2e3850;
    --red: #ef5d52;
    --red-hover: #ff7a70;
    --green: #5fcf94;
    --highlight: #2a2a24;
  }
}

* { box-sizing: border-box; }

html { background: var(--night-1); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--on-night);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgb(120 160 255 / .18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgb(255 200 120 / .07), transparent 60%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 55%, var(--night-3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* --- Schnee ---------------------------------------------------------------- */

#snow {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.no-snow #snow { display: none; }

.topbar, .container, .footer, .landscape, .lights { position: relative; z-index: 1; }

/* --- Kopf ------------------------------------------------------------------ */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(180deg, #a3231b, var(--red));
  box-shadow: 0 2px 12px rgb(0 0 0 / .3);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .01em;
}
.brand .version {
  font-size: .72em; font-weight: 800; padding: 1px 7px; margin-left: 2px; border-radius: 999px;
  color: #3b2a00; background: linear-gradient(90deg, var(--gold), #ffe08a, var(--gold)); background-size: 200% 100%;
  animation: shimmer 4s linear infinite; vertical-align: 2px;
}
.brand img { background: #fff; border-radius: 9px; padding: 3px; transition: transform .2s; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand img.dance { animation: dance 1.2s ease-in-out; }
@keyframes dance {
  0%, 100% { transform: none; }
  20% { transform: rotate(-20deg) scale(1.2); }
  40% { transform: rotate(20deg) scale(1.3) translateY(-6px); }
  60% { transform: rotate(-15deg) scale(1.2); }
  80% { transform: rotate(360deg) scale(1.1); }
}

.snow-toggle {
  border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .12);
  border-radius: 999px; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer;
  transition: background .2s, transform .3s;
}
.snow-toggle:hover { background: rgb(255 255 255 / .25); transform: rotate(60deg); }
.snow-toggle[aria-pressed="false"] { opacity: .45; }
.topbar-actions { display: flex; gap: 8px; }
.globe-btn { display: grid; place-items: center; padding: 0; }
.globe-btn:hover { transform: rotate(-12deg) scale(1.05); }
.globe-btn.shaking svg { animation: globe-shake .7s ease-in-out; }
@keyframes globe-shake {
  0%, 100% { transform: none; }
  15% { transform: translate(-3px, -2px) rotate(-14deg); }
  30% { transform: translate(3px, 1px) rotate(12deg); }
  45% { transform: translate(-3px, 1px) rotate(-10deg); }
  60% { transform: translate(2px, -1px) rotate(8deg); }
  80% { transform: translate(-1px, 0) rotate(-4deg); }
}

/* Lichterkette */
.lights {
  display: flex; justify-content: space-around;
  height: 26px; margin-top: -2px; overflow: hidden;
  background: radial-gradient(ellipse 46px 14px at 23px 0, transparent 12px, rgb(30 40 30 / .9) 13px, transparent 14px) repeat-x;
  background-size: 46px 16px;
}
.bulb {
  width: 9px; height: 14px; margin-top: 8px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: twinkle 2.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.bulb { position: relative; cursor: pointer; }
.bulb::after { content: ""; position: absolute; inset: -8px -12px; } /* größere Trefferfläche */
.bulb.broken {
  background: #2b2f36; box-shadow: none; animation: none; opacity: .85;
  transform: rotate(14deg) translateY(1px);
  clip-path: polygon(0 40%, 25% 18%, 45% 46%, 68% 8%, 100% 32%, 100% 100%, 0 100%);
}
.bulb.konami-hit { animation: konami-hit .6s ease-out; }
@keyframes konami-hit { 0% { background: #fff; box-shadow: 0 0 18px 6px #ffe39a; transform: scale(1.5); } 100% { transform: scale(1); } }
.bulb.repaired { animation: flicker .9s steps(1); }
@keyframes flicker { 0% { opacity: 0; } 15% { opacity: 1; } 25% { opacity: .15; } 40% { opacity: 1; } 50% { opacity: .35; } 65%, 100% { opacity: 1; } }
.bulb.red { --c: #ff5a4e; }
.bulb.gold { --c: #ffd25a; }
.bulb.green { --c: #4fe08f; }
.bulb.blue { --c: #5ab4ff; }
.bulb { background: var(--c); box-shadow: 0 0 10px 2px var(--c); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--c); } }

.banner {
  position: relative; z-index: 1;
  text-align: center; font-weight: 700; padding: 10px 16px;
  background: linear-gradient(90deg, var(--gold), #ffe08a, var(--gold));
  background-size: 200% 100%; color: #3b2a00;
  animation: shimmer 4s linear infinite;
}

/* --- Layout ---------------------------------------------------------------- */

.container { width: 100%; max-width: 680px; margin: 0 auto; padding: 44px 16px 24px; flex: 1; }
.loading { text-align: center; color: var(--on-night-muted); }

.landscape { height: 110px; margin-top: 20px; pointer-events: none; }
.landscape svg { display: block; width: 100%; height: 100%; }
.landscape .hill.back { fill: #8296b6; } /* feste Farbe statt opacity – vermeidet Render-Artefakte */
.landscape .trees { fill: #13302b; }
.landscape .hill.front { fill: #eef3fa; }

.footer {
  text-align: center; color: #5a6b85; font-size: .85rem; padding: 4px 16px 20px;
  background: #eef3fa; margin-top: -1px;
}
.footer-links { display: block; margin-top: 4px; }
.footer a { color: inherit; }
.legal h2 { font-size: 1rem; margin: 20px 0 6px; }
.legal p { margin: 0 0 8px; }
.legal ul { margin: 0 0 8px; padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legacy { all: unset; cursor: pointer; text-decoration: underline dotted; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 20px 0 8px; }

/* Hero */
.hero { text-align: center; padding: 24px 0 32px; }
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff 0%, #ffe39a 25%, #fff 50%, #ffe39a 75%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
  text-shadow: 0 0 40px rgb(255 220 150 / .25);
}
.hero p { color: var(--on-night-muted); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }
.hero .tree { font-size: 3.2rem; display: inline-block; animation: bob 3s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% center; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }

/* --- Karten ---------------------------------------------------------------- */

.card {
  position: relative;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
  animation: rise .55s cubic-bezier(.2, .8, .2, 1) both;
}
/* Schneehaube auf jeder Karte */
details.card::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: -7px; height: 14px;
  background:
    radial-gradient(circle at 10% 100%, #fff 9px, transparent 10px),
    radial-gradient(circle at 28% 100%, #fff 12px, transparent 13px),
    radial-gradient(circle at 50% 100%, #fff 8px, transparent 9px),
    radial-gradient(circle at 70% 100%, #fff 13px, transparent 14px),
    radial-gradient(circle at 90% 100%, #fff 10px, transparent 11px),
    linear-gradient(#fff, #fff) bottom / 100% 7px no-repeat;
  border-radius: 10px 10px 0 0;
  filter: drop-shadow(0 -1px 1px rgb(0 0 0 / .08));
  pointer-events: none;
}
.card.subtle::before { display: none; }
#app > :nth-child(2) { animation-delay: .07s; }
#app > :nth-child(3) { animation-delay: .14s; }
#app > :nth-child(4) { animation-delay: .21s; }
#app > :nth-child(5) { animation-delay: .28s; }
#app > :nth-child(6) { animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }

.card.subtle { background: rgb(255 255 255 / .06); color: var(--on-night); border-color: rgb(255 255 255 / .12); box-shadow: none; backdrop-filter: blur(4px); }
.card.subtle .steps { color: var(--on-night-muted); }
.card.highlight { background: var(--highlight); border-color: var(--gold); }
details.card summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: 16px; }

.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800; color: var(--green); margin: 0 0 4px; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .88rem; margin: 6px 0 0; }
.card a { color: var(--red); }

/* --- Formulare ------------------------------------------------------------- */

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
input, textarea {
  font: inherit; font-weight: 400;
  color: var(--text); background: var(--field);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(227 178 60 / .25); background: var(--card); }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; text-decoration: none;
  padding: 11px 20px; border-radius: 11px; cursor: pointer;
  color: var(--text); background: var(--field); border: 1px solid var(--border);
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.primary {
  background: linear-gradient(180deg, #d9463b, var(--red)); border-color: var(--red); color: #fff;
  box-shadow: 0 4px 14px rgb(192 53 43 / .35);
}
.btn.primary:hover { box-shadow: 0 6px 20px rgb(192 53 43 / .5); }
/* Glanzstreifen */
.btn.primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .35), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); background: transparent; border-color: var(--red); }
.btn.big { font-size: 1.2rem; padding: 16px 26px; width: 100%; }
.btn.big:not(:disabled) { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 4px 14px rgb(192 53 43 / .35); } 50% { box-shadow: 0 4px 30px rgb(192 53 43 / .7), 0 0 0 6px rgb(192 53 43 / .12); } }
.btn.small { font-size: .85rem; padding: 6px 12px; margin-top: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn:disabled::after { display: none; }

.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chip { background: var(--field); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: .88rem; }
.expiry { flex-basis: 100%; margin: 0; font-size: .82rem; color: var(--muted); }
.field-hint { font-weight: 400; margin: 0; }
.description { flex-basis: 100%; margin: 4px 0 0; white-space: pre-wrap; color: var(--muted); }

.linkbox { display: grid; gap: 6px; margin-top: 12px; }
.linkbox label { font-size: .85rem; }
.linkrow { display: flex; gap: 8px; }
.linkrow input { flex: 1; min-width: 0; font-size: .88rem; font-family: ui-monospace, monospace; }

/* --- Listen ---------------------------------------------------------------- */

.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.people li {
  padding: 9px 12px; background: var(--field); border-radius: 10px;
  animation: pop-in .4s cubic-bezier(.2, 1.4, .4, 1) both;
}
.people li:nth-child(2) { animation-delay: .04s; }
.people li:nth-child(3) { animation-delay: .08s; }
.people li:nth-child(4) { animation-delay: .12s; }
.people li:nth-child(5) { animation-delay: .16s; }
.people li:nth-child(n+6) { animation-delay: .2s; }
@keyframes pop-in { from { opacity: 0; transform: scale(.9) translateY(6px); } }
.people li.me { font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.pick-hint { margin: 0 0 12px; }
.people.pickable li:not(.me) { padding: 0; background: none; }
.pick {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font: inherit; color: var(--text); text-align: left; cursor: pointer;
  padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; background: var(--field);
  transition: background .2s, border-color .2s, transform .15s;
}
.pick:hover { border-color: var(--border); transform: translateX(3px); }
.pick .who { flex: 1; }
.pick .state { font-size: .8rem; color: var(--red); font-weight: 600; }
.pick[aria-pressed="true"] { border-color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--field)); }
.pick[aria-pressed="true"] .who { text-decoration: line-through; text-decoration-color: var(--red); }
.pick[aria-pressed="true"] .icon-slot { animation: pop-in .35s cubic-bezier(.2, 1.6, .4, 1); display: inline-block; }
.pick:disabled { opacity: .6; cursor: wait; }
.people.admin li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badges { display: flex; gap: 6px; align-items: center; }
.tag { font-size: .78rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); text-decoration: none; white-space: nowrap; }
.tag.ok { color: var(--green); border-color: var(--green); }
.icon { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 2px 6px; border-radius: 6px; }
.icon:hover { color: var(--red); background: var(--card); }

.mygroups { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mygroups li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--field); transition: transform .15s; }
.mygroups li:hover { transform: translateX(4px); }
.mygroups a { text-decoration: none; }

.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 4px; }

.notice { padding: 12px 14px; border-radius: 10px; background: var(--field); border-left: 4px solid var(--green); margin: 12px 0; }
.notice.warn { border-left-color: var(--red); }

/* --- Warten / Auspacken ---------------------------------------------------- */

.waiting { text-align: center; padding: 16px 0 4px; }
.waiting .big { font-size: 2.8rem; display: inline-block; animation: tilt 2s ease-in-out infinite; }
@keyframes tilt { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }

.giftbox {
  display: grid; justify-items: center; gap: 10px; width: 100%;
  margin-top: 12px; padding: 32px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--text);
  background:
    radial-gradient(circle at 50% 40%, rgb(255 215 120 / .35), transparent 60%),
    var(--highlight);
  border: 2px dashed var(--gold); border-radius: var(--radius);
  transition: transform .2s;
}
.giftbox:hover { transform: scale(1.015); }
.giftbox .gift { font-size: 4.5rem; display: inline-block; animation: wiggle 2.4s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .2)); }
.giftbox:hover .gift { animation-duration: .9s; }
.giftbox.opening .gift { animation: shake .5s ease-in-out, burst .45s .5s ease-in forwards; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
@keyframes shake {
  0%, 100% { transform: translate(0) rotate(0); }
  20% { transform: translate(-4px, 1px) rotate(-12deg); }
  40% { transform: translate(5px, -2px) rotate(12deg) scale(1.08); }
  60% { transform: translate(-6px, 2px) rotate(-15deg) scale(1.15); }
  80% { transform: translate(6px, -3px) rotate(15deg) scale(1.2); }
}
@keyframes burst { to { transform: scale(2.4) rotate(20deg); opacity: 0; filter: blur(4px); } }

.reveal {
  text-align: center; margin-top: 12px; padding: 28px 16px; border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 50% 12%, rgb(255 215 120 / .22), transparent 60%),
    linear-gradient(160deg, #a3231b, #6e1410);
  box-shadow: inset 0 0 0 2px rgb(255 215 120 / .35);
  animation: fadein .5s ease-out;
  overflow: hidden;
}
.reveal .eyebrow { color: #ffe39a; }
.reveal .hint { color: rgb(255 255 255 / .8); }
.reveal .target {
  font-size: clamp(2rem, 8vw, 3rem); font-weight: 900; color: #fff; margin: 4px 0 2px; word-break: break-word;
  text-shadow: 0 2px 4px rgb(0 0 0 / .35), 0 0 28px rgb(255 215 120 / .55);
}
.reveal .secret { margin: 0 0 16px; font-size: .95rem; color: rgb(255 255 255 / .85); }
.reveal-note {
  margin: 4px auto 0; max-width: 30em; font-size: .85rem; line-height: 1.45; color: rgb(255 255 255 / .75);
  animation: late-fade .8s ease-out 2.5s both; /* nicht so wichtig – erscheint erst nach dem Namen */
}
.reveal-wishes { margin: 4px auto 0; max-width: 30em; }
.reveal-wishes .label { margin: 0 0 4px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffe39a; }
.reveal-wishes .text { margin: 0; font-size: .95rem; line-height: 1.5; color: rgb(255 255 255 / .92); white-space: pre-wrap; word-break: break-word; }
@keyframes late-fade { from { opacity: 0; transform: translateY(6px); } }
.reveal .target span { display: inline-block; animation: letter .5s cubic-bezier(.2, 1.6, .4, 1) both; white-space: pre; }
@keyframes letter { from { opacity: 0; transform: translateY(24px) scale(.4) rotate(-20deg); } }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }

/* --- Overlay (Lose mischen) ----------------------------------------------- */

.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  background: radial-gradient(circle at 50% 45%, rgb(35 64 107 / .92), rgb(11 22 38 / .97));
  color: #fff; text-align: center;
  opacity: 0; transition: opacity .35s;
}
.overlay.show { opacity: 1; }
.overlay .hat { font-size: 4.5rem; animation: hat .45s ease-in-out infinite alternate; }
@keyframes hat { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(12deg) translateY(-10px); } }
.overlay .shuffle-name { font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 900; min-height: 1.3em; color: #ffe39a; text-shadow: 0 0 30px rgb(255 220 150 / .6); }
.overlay .shuffle-name.flip { animation: flip .09s ease-out; }
@keyframes flip { from { transform: translateY(-30%); opacity: .2; } }
.overlay p { color: var(--on-night-muted); margin: 0; }

.snowcap {
  position: absolute; left: -1px; top: -41px; height: 44px; width: calc(100% + 2px);
  z-index: 2; touch-action: none; cursor: grab;
}
.fx-layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 65; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* --- Eastereggs ------------------------------------------------------------ */

.sleigh {
  position: fixed; z-index: 40; top: 18%; left: 0;
  font-size: 2.6rem; white-space: nowrap; pointer-events: none;
  animation: fly 5s linear forwards;
  filter: drop-shadow(0 0 10px rgb(255 255 255 / .5));
}
.gift-drop {
  position: fixed; z-index: 45; bottom: 6px; width: 38px; height: 38px; padding: 0;
  font-size: 30px; line-height: 38px; text-align: center;
  background: none; border: 0; cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 3px 4px rgb(0 0 0 / .35));
  -webkit-tap-highlight-color: transparent;
}
.gift-drop:hover { transform: rotate(var(--tilt, 0deg)) scale(1.15); }
.gift-drop.opening { animation: gift-pop .35s ease-in forwards; }
@keyframes gift-pop { 40% { transform: scale(1.4) rotate(-10deg); } 100% { transform: scale(.2); opacity: 0; } }
@keyframes fly {
  0% { transform: translate(110vw, 40px) rotate(-6deg); }
  25% { transform: translate(70vw, -10px) rotate(4deg); }
  50% { transform: translate(35vw, 30px) rotate(-6deg); }
  75% { transform: translate(5vw, -20px) rotate(4deg); }
  100% { transform: translate(-60vw, 10px) rotate(-6deg); }
}
.grinch body { filter: hue-rotate(90deg) saturate(1.6); transition: filter .6s; }

/* --- Toast ----------------------------------------------------------------- */

.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: #fffdf9; color: #2b2420;
  padding: 11px 20px; border-radius: 12px; font-weight: 700;
  box-shadow: 0 8px 30px rgb(0 0 0 / .35);
  opacity: 0; pointer-events: none; transition: .3s cubic-bezier(.2, 1.4, .4, 1); max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); color: #fff; }

@media (max-width: 520px) {
  .grid2 { grid-template-columns: 1fr; }
  .linkrow { flex-wrap: wrap; }
  .linkrow input { flex-basis: 100%; }
  .card { padding: 20px 18px; }
  .landscape { height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Intro: die alte Version 1 (Bootstrap-Look von 2020) ------------------ */

.intro-running body { overflow: hidden; }
.intro-running #app > * { animation-play-state: paused; }

.v1 {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff; color: #212529;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: background-color .9s ease, opacity .6s ease;
}
.v1.fade-bg { background-color: transparent; }
.v1.gone { opacity: 0; pointer-events: none; }
.v1.shake { animation: v1-shake .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes v1-shake {
  10%, 90% { transform: translate(-1px, 0); }
  20%, 80% { transform: translate(3px, 1px); }
  30%, 50%, 70% { transform: translate(-5px, -1px) rotate(-.3deg); }
  40%, 60% { transform: translate(5px, 1px) rotate(.3deg); }
}
.v1 .piece { display: inline-block; will-change: transform; }
.v1-container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.v1-nav { display: block !important; background: #fff; border-bottom: 1px solid #dee2e6; box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); padding: .5rem 0; margin-bottom: 1rem; }
.v1-nav .v1-container { display: flex; align-items: center; gap: 2rem; }
.v1-brand { font-size: 1.25rem; padding: .3125rem 0; }
.v1-link { color: #343a40; }
.v1-title { text-align: center; font-size: 4.5rem; font-weight: 300; line-height: 1.2; margin: 1rem 0 2.5rem; }
.v1-row { display: flex; justify-content: center; gap: 150px; flex-wrap: wrap; align-items: flex-start; }
.v1-card { display: block !important; width: 400px; max-width: 100%; border: 1px solid rgba(0, 0, 0, .125); border-radius: .25rem; padding: 1.25rem 1.75rem; background: #fff; }
.v1-card h5 { font-size: 1.6rem; font-weight: 500; line-height: 1.25; margin: 0 0 .75rem; }
.v1-card p { margin: 0 0 .25rem; font-size: 1.15rem; line-height: 1.7; }
.v1-btn { color: #fff; background: #4570c0; border: 1px solid #3c63aa; border-radius: .25rem; padding: .5rem 1rem; font-size: 1.2rem; }
.v1-input { display: block !important; width: 100%; font: inherit; font-size: 1.15rem; color: #495057; padding: .4rem .9rem; border: 1px solid #ced4da; border-radius: .25rem; margin: 0 0 2rem; background: #fff; }
.v1-alert { display: block !important; margin: 4rem 0 1.5rem; padding: 1.25rem 1.75rem; font-size: 1.2rem; color: #0c5460; background: #d1ecf1; border: 1px solid #bee5eb; border-radius: .25rem; }
.v1-footer { display: block !important; margin-top: auto; border-top: 1px solid #dee2e6; padding: 1.25rem 0; font-size: 1.2rem; color: #6c757d; background: #fff; }
.v1-a { color: #4570c0; }
.v1-skip {
  position: absolute; right: 16px; bottom: 80px; z-index: 2;
  font: 600 .85rem/1 system-ui, sans-serif; padding: 8px 14px; cursor: pointer;
  color: #fff; background: rgb(11 22 38 / .75); border: 0; border-radius: 999px;
}
@media (max-height: 760px) {
  .v1-title { margin-bottom: 1.25rem; }
  .v1-alert { margin-top: 1.5rem; }
}
@media (max-width: 900px) {
  .v1-row { gap: 24px; }
  .v1-title { font-size: 3rem; }
  .v1-card { width: 100%; }
  .v1-alert { margin-top: 1.5rem; }
}
