﻿:root {
  --navy: #163a72;
  --navy-dark: #0d2450;
  --sky: #6ec6ff;
  --lime: #b6e34a;
  --green: #3c8f5c;
  --green-hi: #7ed69a;
  --green-lo: #1e5a32;
  --yellow: #ffe14a;
  --pink: #ff7eb3;
  --silver: #d4d0c8;
  --well: #ece9d8;
  --ink: #111;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Trebuchet", Verdana, Geneva, sans-serif;
  background-color: var(--navy-dark);
  background-image:
    radial-gradient(#fff 1.2px, transparent 1.2px),
    radial-gradient(#ffe14a 1px, transparent 1px),
    linear-gradient(#163a72, #0d2450 55%, #14532d);
  background-size: 28px 28px, 52px 52px, 100% 100%;
  background-position: 0 0, 14px 22px, 0 0;
  line-height: 1.45;
}

.stage {
  width: min(28rem, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1.1rem 0 1.75rem;
}

.window {
  background: var(--silver);
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-right: 3px solid #5a584e;
  border-bottom: 3px solid #5a584e;
  box-shadow: 6px 6px 0 #000;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.4rem;
  background: linear-gradient(90deg, #0b3d91, #3a7adf);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 #00245c;
}

.titlebar .px {
  width: 12px;
  height: 12px;
  background: var(--lime);
  box-shadow:
    12px 0 #ffe14a,
    24px 0 #ff7eb3;
  flex-shrink: 0;
}

.chrome {
  display: flex;
  margin-left: auto;
  gap: 3px;
}

.chrome-btn {
  box-sizing: border-box;
  width: 16px;
  height: 14px;
  padding: 0;
  margin: 0;
  background: var(--silver);
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-style: normal;
  font-size: 9px;
  line-height: 11px;
  text-align: center;
  color: #222;
  cursor: pointer;
}

.chrome-btn:active {
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.inner {
  padding: 0.7rem 0.7rem 0.85rem;
  background: repeating-linear-gradient(
    180deg,
    #fff5c8 0 10px,
    #fff1b0 10px 20px
  );
}

.hero {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.hero-home {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.pixel-bird {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

h1 {
  margin: 0;
  font-family: "Comic Sans MS", "Comic Sans", "Trebuchet MS", cursive;
  font-size: clamp(1.7rem, 8vw, 2.35rem);
  line-height: 0.95;
  color: #c41e6a;
  text-shadow:
    2px 2px 0 #fff,
    4px 4px 0 #163a72;
}

.tag {
  margin: 0.25rem 0 0;
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.3;
  color: #163a72;
}

.banner {
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.45rem;
  background: repeating-linear-gradient(
    90deg,
    #ffe14a 0 12px,
    #ffef88 12px 24px
  );
  border-top: 2px solid #fff6b0;
  border-left: 2px solid #fff6b0;
  border-right: 2px solid #b89b00;
  border-bottom: 2px solid #b89b00;
  text-align: center;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.intro {
  margin: 0 0 0.9rem;
  padding: 0.55rem 0.65rem;
  background: #e7f4ff;
  border: 2px dashed #3a7adf;
  font-size: 0.95rem;
}

.wizard .intro {
  font-weight: 400;
}

nav.links {
  display: grid;
  gap: 0.55rem;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.45rem 0.7rem;
  background: linear-gradient(#5cb87c, var(--green));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 0 #1e5a32;
  border-top: 3px solid var(--green-hi);
  border-left: 3px solid var(--green-hi);
  border-right: 3px solid var(--green-lo);
  border-bottom: 3px solid var(--green-lo);
}

.link.primary {
  background: linear-gradient(#ff8fc0, #e4458a);
  text-shadow: 1px 1px 0 #8b1048;
  border-top-color: #ffd0e4;
  border-left-color: #ffd0e4;
  border-right-color: #9b1856;
  border-bottom-color: #9b1856;
}

.link.buntmetall {
  background: #d2f904;
  color: #111;
  text-shadow: none;
  letter-spacing: 0.1em;
  border-top-color: #eeff7a;
  border-left-color: #eeff7a;
  border-right-color: #8aaa00;
  border-bottom-color: #8aaa00;
}

.link.buntmetall:active {
  border-top-color: #8aaa00;
  border-left-color: #8aaa00;
  border-right-color: #eeff7a;
  border-bottom-color: #eeff7a;
}

#koop-box {
  margin-top: 0.75rem;
}

#koop-box .intro {
  margin-bottom: 0.55rem;
}

#koop-box .intro a {
  color: #0000ee;
  font-weight: 700;
}

.link:hover,
.link:focus-visible {
  filter: brightness(1.08);
}

.link:active {
  border-top-color: var(--green-lo);
  border-left-color: var(--green-lo);
  border-right-color: var(--green-hi);
  border-bottom-color: var(--green-hi);
  transform: translate(1px, 1px);
}

.link.primary:active {
  border-top-color: #9b1856;
  border-left-color: #9b1856;
  border-right-color: #ffd0e4;
  border-bottom-color: #ffd0e4;
}

:focus-visible {
  outline: 2px dotted #ffe14a;
  outline-offset: 3px;
}

.hr {
  height: 12px;
  margin: 0.95rem 0;
  background-image: repeating-linear-gradient(
    90deg,
    #ff7eb3 0 10px,
    #ffe14a 10px 20px,
    #6ec6ff 20px 30px,
    #b6e34a 30px 40px
  );
  box-shadow: inset 0 -2px #00000033;
}

h2 {
  margin: 0 0 0.4rem;
  font-family: "Comic Sans MS", "Comic Sans", "Trebuchet MS", cursive;
  font-size: 1.2rem;
  color: #0d2450;
  text-align: center;
}

[hidden] {
  display: none !important;
}

button.link {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

section > p {
  margin: 0 0 0.7rem;
  padding: 0.55rem 0.65rem;
  background: #e7f4ff;
  border: 2px dashed #3a7adf;
  font-size: 0.95rem;
}

.legal {
  padding: 0.55rem 0.65rem 0.85rem;
  background: #e7f4ff;
  border: 2px dashed #3a7adf;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: left;
}

.legal h2 {
  font-family: "Comic Sans MS", "Comic Sans", "Trebuchet MS", cursive;
  font-size: 1.15rem;
  color: #0d2450;
  text-align: left;
  margin: 1.15rem 0 0.4rem;
}

.legal h2:first-of-type {
  margin-top: 0.15rem;
}

.legal a {
  color: #0000ee;
}

.legal a:visited {
  color: #551a8b;
}

.legal h3 {
  margin: 0.8rem 0 0.3rem;
  font-size: 0.95rem;
  color: #0d2450;
}

.legal p,
.legal ul {
  margin: 0 0 0.55rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal .caps {
  font-size: 0.82rem;
}

.wizard {
  margin-top: 0.15rem;
  padding: 0.75rem 0.7rem 0.85rem;
  background: #fff;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.progress {
  margin: 0 0 0.85rem;
  padding-top: 0.35rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: #163a72;
  margin-bottom: 0.85rem;
}

.bar {
  position: relative;
  height: 16px;
  margin: 0 0 0.35rem;
  background: #2a2a2a;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.nyan-fill {
  display: block;
  position: relative;
  height: 100%;
  width: 20%;
  overflow: hidden;
  transition: width 0.4s ease;
}

.nyan-rainbow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: calc(100% + 32px);
  animation: nyan-stream 0.35s steps(2) infinite;
}

.nyan-rainbow::before,
.nyan-rainbow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #ff3b3b 0 16.66%,
    #ff9a3b 16.66% 33.33%,
    #ffe14a 33.33% 50%,
    #5fd36a 50% 66.66%,
    #4aa3ff 66.66% 83.33%,
    #c56bff 83.33% 100%
  );
}

.nyan-rainbow::before {
  top: 0;
  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    #000 0 8px,
    transparent 8px 16px
  );
  mask-image: repeating-linear-gradient(
    90deg,
    #000 0 8px,
    transparent 8px 16px
  );
}

.nyan-rainbow::after {
  top: 2px;
  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    transparent 0 8px,
    #000 8px 16px
  );
  mask-image: repeating-linear-gradient(
    90deg,
    transparent 0 8px,
    #000 8px 16px
  );
}

.nyan-bird {
  position: absolute;
  top: 50%;
  left: 20%;
  z-index: 2;
  pointer-events: none;
  transform: translate(calc(-100% + 15px), -50%);
  animation: nyan-hop 0.55s steps(2, end) infinite;
  transition: left 0.4s ease;
}

.nyan-bird svg {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

@keyframes nyan-stream {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-16px);
  }
}

@keyframes nyan-hop {
  0%,
  55%,
  100% {
    transform: translate(calc(-100% + 15px), -50%);
  }
  25% {
    transform: translate(calc(-100% + 15px), calc(-50% - 5px));
  }
  40% {
    transform: translate(calc(-100% + 15px), calc(-50% - 1px));
  }
}

.step h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: #0d2450;
}

.choices {
  display: grid;
  gap: 0.45rem;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.7rem;
  padding: 0.45rem 0.6rem;
  background: #f7fbff;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  cursor: pointer;
  font-weight: 700;
}

.choices input {
  accent-color: #3c8f5c;
}

.field {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.field .opt {
  font-weight: 400;
  font-size: 0.78em;
  color: #666;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-weight: 400;
  padding: 0.5rem 0.55rem;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: #fffef8;
}

.field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.nav-row {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.nav-row .link {
  flex: 1;
}

.ghost {
  background: linear-gradient(#eee, #cfcfcf);
  color: #222;
  text-shadow: none;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
}

.hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: #444;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 7.2rem;
  margin: 0 0 0.7rem;
  padding: 0.85rem 0.7rem;
  background: #e7f4ff;
  border: 2px dashed #3a7adf;
  cursor: pointer;
  text-align: center;
}

.dropzone.is-over {
  background: #fff6b0;
  border-color: #c41e6a;
}

.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.dropzone-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #0d2450;
}

.dropzone-pick {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: linear-gradient(#5cb87c, var(--green));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-shadow: 1px 1px 0 #1e5a32;
  border-top: 2px solid var(--green-hi);
  border-left: 2px solid var(--green-hi);
  border-right: 2px solid var(--green-lo);
  border-bottom: 2px solid var(--green-lo);
}

.dropzone-name {
  font-size: 0.78rem;
  font-weight: 400;
  color: #444;
}

.previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.preview {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border: 2px solid #808080;
  background: #fff;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.55rem;
  background: #f7fbff;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
}

.consent input {
  margin-top: 0.15rem;
  accent-color: #3c8f5c;
  flex-shrink: 0;
}

.consent label {
  cursor: pointer;
}

.consent a.dschutz-link {
  position: relative;
  z-index: 2;
  color: #0000ee;
  font-weight: 700;
  text-decoration: underline;
  pointer-events: auto;
}

footer {
  position: relative;
  z-index: 5;
  margin-top: 0.85rem;
  padding: 0.55rem 0.45rem 0.2rem;
  background: var(--well);
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  font-size: 0.78rem;
  text-align: center;
  color: #333;
}

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 3;
}

footer nav a {
  color: #0000ee;
  text-decoration: underline;
}

footer a:visited {
  color: #551a8b;
}

.counter {
  margin: 0.45rem 0 0.15rem;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.counter b {
  display: inline-block;
  margin: 0 1px;
  padding: 0.05rem 0.28rem;
  background: #111;
  color: #b6e34a;
  border: 1px solid #444;
}

.now-wrap {
  margin: 0.55rem 0 0.1rem;
}

footer a.now-btn,
footer a.now-btn:visited {
  display: inline-block;
  line-height: 0;
  color: inherit;
}

.now-btn img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 0;
  vertical-align: middle;
}

.now-btn:hover img,
.now-btn:focus-visible img {
  filter: brightness(1.08);
}

.now-btn:active img {
  filter: brightness(0.93);
  transform: translate(1px, 1px);
}

.fine {
  margin: 0.35rem 0 0;
  color: #555;
  font-size: 0.7rem;
}

.stage {
  position: relative;
  z-index: 2;
}

.hero-sprites {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.hop svg {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hop-hero {
  animation: hop 0.7s steps(2, end) infinite;
}

.hop-hero:nth-child(2) {
  animation-delay: 0.22s;
}

.critter-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.critter-layer .hop {
  position: absolute;
  animation: hop 0.85s steps(2, end) infinite;
}

.feather {
  position: absolute;
  top: -8%;
  animation: fall linear infinite;
}

@keyframes hop {
  0%,
  55%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-9px);
  }
  40% {
    transform: translateY(-2px);
  }
}

@keyframes fall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
    opacity: 0.9;
  }
  40% {
    transform: translate3d(14px, 40vh, 0) rotate(25deg);
  }
  100% {
    transform: translate3d(-10px, 108vh, 0) rotate(-18deg);
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hop-hero,
  .critter-layer .hop,
  .feather,
  .nyan-rainbow,
  .nyan-bird {
    animation: none !important;
  }
}

@media (min-width: 48rem) {
  .stage {
    padding-top: 2.4rem;
  }
}

#cant-close {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cant-close-scrim {
  position: absolute;
  inset: 0;
  background: #000000aa;
}

.cant-close-pop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cant-close-scene {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.speech-px {
  position: relative;
  z-index: 2;
  margin-top: 1.55rem;
  max-width: 11.8rem;
  padding: 0.7rem 0.75rem 0.75rem;
  background: #fffef8;
  color: #111;
  font-family: "Comic Sans MS", "Comic Sans", "Trebuchet MS", cursive;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  box-shadow:
    0 -4px 0 #111,
    0 4px 0 #111,
    -4px 0 0 #111,
    4px 0 0 #111,
    4px 4px 0 #000;
}

.speech-px p {
  margin: 0;
}

.speech-tail {
  position: absolute;
  right: -20px;
  top: 42%;
  width: 4px;
  height: 4px;
  background: #fffef8;
  box-shadow:
    4px 4px 0 #fffef8,
    8px 8px 0 #fffef8,
    12px 12px 0 #fffef8,
    16px 16px 0 #fffef8,
    0 4px 0 #111,
    4px 8px 0 #111,
    8px 12px 0 #111,
    12px 16px 0 #111,
    16px 20px 0 #111,
    20px 16px 0 #111,
    16px 12px 0 #111,
    12px 8px 0 #111,
    8px 4px 0 #111,
    4px 0 0 #111,
    0 -4px 0 #111;
}

.grey-pop {
  display: block;
  width: min(48vw, 210px);
  height: auto;
  margin-left: -6px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.cant-close-ok {
  margin-top: 0.85rem;
  width: auto;
  min-width: 4.8rem;
  min-height: 2.2rem;
  padding: 0.25rem 1.1rem;
}
