.raetsel {
  padding: calc(84px + env(safe-area-inset-top)) clamp(1rem, 8vw, 10rem) calc(1.25rem + env(safe-area-inset-bottom));
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 3vh, 2rem);
  display: flex;
  position: absolute;
  inset: 0;
}

.papier {
  background: var(--farbe-flaeche);
  color: var(--farbe-text);
  text-align: center;
  border-radius: 18px;
  padding: clamp(1rem, 3vh, 2rem) clamp(1.25rem, 4vw, 3rem);
  box-shadow: 0 2px 4px #00000040, 0 16px 32px -14px #0009;
}

.papier__hinweis {
  min-height: 1.3em;
  color: var(--farbe-honig-dunkel);
  font-family: var(--schrift-titel);
  opacity: 0;
  max-width: none;
  transition: opacity .4s var(--uebergang);
  margin: 0 0 .3em;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.papier__hinweis--sichtbar {
  opacity: 1;
}

.papier__satz {
  font-family: var(--schrift-titel);
  text-wrap: balance;
  max-width: none;
  margin: 0;
  font-size: clamp(1.75rem, 1rem + 3vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
}

.antworten {
  flex-direction: column;
  gap: clamp(.75rem, 1.6vh, 1.1rem);
  display: flex;
}

.antwort {
  background: var(--farbe-grund);
  min-height: clamp(72px, 11vh, 96px);
  color: var(--farbe-text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--uebergang), box-shadow .3s var(--uebergang);
  border: 0;
  border-radius: 16px;
  justify-content: center;
  align-items: center;
  gap: .6em;
  padding: .35em 1em;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  box-shadow: 0 2px 4px #00000040, 0 10px 20px -12px #0000008c;
}

.antwort:hover:not(:disabled) {
  background: var(--farbe-flaeche);
}

.antwort:disabled {
  cursor: default;
}

.antwort--richtig {
  background: var(--farbe-flaeche);
  box-shadow: 0 0 0 6px var(--farbe-honig), 0 12px 24px -12px #0009;
}

.antwort--richtig:before {
  content: "";
  border: solid var(--farbe-haupt);
  border-width: 0 .18em .18em 0;
  flex: none;
  width: .55em;
  height: 1em;
  margin-top: -.15em;
  transform: rotate(45deg);
}

.weiter {
  background: var(--farbe-honig);
  min-height: clamp(72px, 11vh, 96px);
  color: var(--farbe-text);
  animation: weiter-erscheint .6s var(--uebergang);
  align-self: center;
  padding-inline: 2.4em;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
}

.weiter:hover {
  color: var(--farbe-text);
  background: #ecc46e;
}

.weiter:disabled {
  opacity: 1;
  cursor: default;
}

@keyframes weiter-erscheint {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (any-pointer: fine) {
  .mit-maus-hilfe .raetsel {
    padding-bottom: calc(10rem + env(safe-area-inset-bottom));
  }
}

@media (any-pointer: fine) and (width >= 48rem) {
  .mit-maus-hilfe .raetsel {
    padding-inline: max(clamp(1rem, 8vw, 10rem), 11.5rem);
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .weiter {
    animation: none;
  }

  .papier__hinweis {
    transition: none;
  }
}
