@font-face {
  font-family: "Chillax";
  src: url("/assets/fonts/Chillax-Regular.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "Chillax";
  src: url("/assets/fonts/Chillax-Bold.otf") format("opentype");
  font-weight: 700;
}

:root {
  --yellow: #ffc72a;
  --blue: #0064b9;
  --red: #dd2726;
  --black: #000;
  font-family: "Chillax", sans-serif;
  color: var(--black);
  background: var(--yellow);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100svh;
  margin: 0;
  padding: clamp(24px, 7vw, 54px);
  display: grid;
  place-items: center;
  background: var(--yellow);
}

main {
  width: min(100%, 520px);
}

main.mailbox {
  width: min(100%, 1060px);
}

.mark {
  display: block;
  width: 72px;
  margin-bottom: 34px;
}

h1 {
  max-width: 12ch;
  margin: 0 0 14px;
  font-size: clamp(42px, 12vw, 72px);
  line-height: .92;
  letter-spacing: -.055em;
}

p {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.45;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea,
button {
  width: 100%;
  border: 3px solid var(--black);
  border-radius: 0;
  font: inherit;
}

input,
textarea {
  padding: 14px 15px;
  background: var(--yellow);
  color: var(--black);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 3px solid var(--black);
  background: var(--black);
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

.button--secondary {
  background: var(--yellow);
  color: var(--black);
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.status {
  min-height: 52px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 3px solid transparent;
  font-weight: 700;
}

.status[data-state="success"] {
  border-color: var(--black);
  background: var(--blue);
  color: var(--yellow);
}

.status[data-state="error"] {
  border-color: var(--black);
  background: var(--red);
  color: var(--black);
}

.qr-preview {
  width: min(72vw, 300px);
  margin: 28px auto 0;
  display: block;
  image-rendering: pixelated;
}

.qr-stage {
  width: min(82vw, 420px);
  aspect-ratio: 1;
  margin: 30px auto 0;
  display: grid;
  place-items: center;
  border: 4px solid var(--black);
  background: var(--yellow);
}

.qr-stage img {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-stage div {
  max-width: 12ch;
  padding: 24px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.qr-clock {
  min-height: 22px;
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.qr-target {
  margin: 2px 0 26px;
  text-align: center;
  font-size: 13px;
}

.settings {
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  padding: 16px 0;
}

.settings summary {
  cursor: pointer;
  font-weight: 700;
}

.settings[open] {
  display: grid;
  gap: 14px;
}

.small {
  margin-top: 24px;
  font-size: 14px;
}

.small a {
  color: var(--black);
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Kasse ---------------------------------------------------------- */

.shop-section {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 4px solid var(--black);
}

.shop-section h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1;
  letter-spacing: -.03em;
}

.action-button {
  min-height: 84px;
  font-size: clamp(20px, 6vw, 28px);
  letter-spacing: -.02em;
}

.qr-state {
  min-height: 34px;
  margin: 10px 0 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.qr-state[data-state="eingelöst"] {
  color: var(--blue);
}

.claim-input {
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 700;
  letter-spacing: .22em;
  text-align: center;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.shop-grid div {
  padding: 14px 16px;
  border: 3px solid var(--black);
}

.shop-grid dt {
  font-size: 13px;
  font-weight: 500;
}

.shop-grid dd {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.shop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 3px solid var(--black);
  font-size: 14px;
  font-weight: 700;
}

.shop-foot button {
  width: auto;
  min-height: 44px;
  padding: 8px 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
